Obtain Vertex_handle from compact container of vertices
In Triangulation_data_structure_3.h, I am using the vertices() method to obtain a reference to the compact container of vertices in the triangulation.
I’m attempted to obtain from that Vertex_handles on the items in the container, so that I can iterate through them and test for the infinite vertex using the is_infinite(Vertex_handle v) method.
Reading the documentation on CGAL::Compact container seems to imply that one can obtain an iterator of T from the container, but if I obtain the first element of the CGAL::Compact_container<CGAL::Triangulation_vertex_base_with_info_3, …> I cannot successfully cast it to a Vertex_handle via static_cast.
The debugger shows that I have a pointer to the element, but I cannot dereference it successfully.
Here’s a short self-contained example of what I’m attempting: