Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?
- Date: Thu, 18 Jul 2013 18:17:02 +0200
- Organization: GeometryFactory
You can use an item class with id in the vertices and set the id using the lexicographic order.
See for example this one:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/BGL_ref/Class_Polyhedron_items_with_id_3.html
typedef CGAL::Polyhedron_3<Kernel,CGAL::Polyhedron_items_with_id_3> Polyhedron;
Polyhedron::Vertex_handle vh=...;
vh->id()=4;
Sebastien.
On 07/18/2013 06:01 PM, tang wrote:
Dear all,
I noticed that CGAL has vertex sorting functions:
http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Spatial_sorting/Chapter_main.html
Now the problem is that how can I update vertex indices of polyhedron at the
same time when I sorting vertices?
Thanks,
Zhanghong Tang
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Suggestion-How-to-output-a-unique-polyhedron-after-boolean-operation-tp4657807p4657815.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Suggestion/How to output a unique polyhedron after boolean operation?, tang, 07/17/2013
- [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, tang, 07/18/2013
- Re: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, Sebastien Loriot (GeometryFactory), 07/18/2013
- [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, tang, 07/19/2013
- Re: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, Sebastien Loriot (GeometryFactory), 07/19/2013
- [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, tang, 07/19/2013
- Re: [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, Sebastien Loriot (GeometryFactory), 07/18/2013
- [cgal-discuss] Re: Suggestion/How to output a unique polyhedron after boolean operation?, tang, 07/18/2013
Archive powered by MHonArc 2.6.18.