Subject: CGAL users discussion list
List archive
[cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh)
Chronological Thread
- From: Nicholas Mario Wardhana <>
- To:
- Subject: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh)
- Date: Sat, 15 Jan 2011 17:26:49 +0800
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pWdCq27fcbDTZeSgZtgmPd6TXhLKGd41SLGcMzneGCs15Ulp6hfKNGkeu6oWsR5yZD aAy5b+xhUW1BsYXemBthPDclW5Y9giDsI/zcYe6RkTFGzRavFNBTlx0+93B3HQamxobR eSAp9LksvLFSkNas64ZHrgNNZNOwcSjY2E7pE=
On 13 January 2011 16:21, Sebastien Loriot (GeometryFactory)
<>
wrote:
> The Polyhedron_3 class of CGAL documented here:
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3.html
> provides iterator over vertices,facets and halfedges.
>
> Given a facet, you can use Halfedge_around_facet_const_circulator to get the
> vertices of a face (using the incident vertex to each halfedge).
>
> See:
> http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3-Traits---Facet.html
>
> I don't want to prevent you from implementing your own data structure if
> you think it will be more efficient but you may save time by using an
> existing one (in particular because many additional functionalities are
> available in CGAL).
>
>
> S.
>
>
Hi Sebastien,
Sorry for my late reply. I have been studying CGAL's polyhedron
deeper, based on the link that you provided. Thank you for your
suggestion two days ago. It turned out that using CGAL we can quickly
have the polyhedron integrated to our code (reading documentation,
wrapper implementation and basic testings only take two days).
I have one question. Currently I use
Polyhedron_incremental_builder_3<Halfedge> to build a polyhedron, and
it is possible to access the vertices of a polyhedron by ID via
Polyhedron_incremental_builder_3<Halfedge>::vertex(). I am just
wondering whether there is a similar method to get a facet of a
polyhedron by inputting the ID, as so far I haven't found such
function. In the current implementation, I have to save every
Facet_handle object returned by
Polyhedron_incremental_builder_3<Halfedge>::begin_facet() in an
external hash_map, with the IDs serving as the keys.
Thank you.
Best regards,
Nicholas Mario Wardhana
- [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Nicholas Mario Wardhana, 01/15/2011
- Re: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Sebastien Loriot (GeometryFactory), 01/17/2011
- Re: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Nicholas Mario Wardhana, 01/18/2011
- Re: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Nicholas Mario Wardhana, 01/18/2011
- Re: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Nicholas Mario Wardhana, 01/18/2011
- Re: [cgal-discuss] Accessing Facet_handle of a Polyhedron_3 by ID (was: Half-edge representation, CGAL vs OpenMesh), Sebastien Loriot (GeometryFactory), 01/17/2011
Archive powered by MHonArc 2.6.16.