Subject: CGAL users discussion list
List archive
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] number_of_vertices_in_complex
- Date: Tue, 30 Aug 2011 14:38:41 +0200
- Organization: GeometryFactory
On mardi 30 août 2011 09:21:00 Dominik Szczerba wrote:
> In CGAL 3.7 I used to get the number of vertices in the generated mesh
> from c3t3.number_of_vertices(). In 3.8 this function is gone and the
> similarly named c3t3.number_of_vertices_in_complex()
> returns zero, even if the mesh is there (as per the loop over
> Finite_vertices_iterator vit = tr.finite_vertices_begin(); vit !=
> tr.finite_vertices_end()). How to query the number of vertices
> correctly?
c3t3.number_of_vertices() was not documented, and that is why the
compatibility was not kept. It is the same as:
c3t3.triangulation().number_of_vertices();
that is documented, in both 3.7 and 3.8. Use that as a replacement and should
no longer ave problems.
number_of_vertices_in_complex() is not documented either, and is not what you
expect. It should be named number_of_corners(), documented here:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Mesh_3_ref/Concept_MeshComplexWithFeatures_3InTriangulation_3.html
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] number_of_vertices_in_complex, Dominik Szczerba, 08/30/2011
- Re: [cgal-discuss] number_of_vertices_in_complex, Andreas Fabri, 08/30/2011
- Re: [cgal-discuss] number_of_vertices_in_complex, Laurent Rineau (GeometryFactory), 08/30/2011
- Re: [cgal-discuss] number_of_vertices_in_complex, Dominik Szczerba, 08/30/2011
Archive powered by MHonArc 2.6.16.