Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Assessing the facet of a halfedge in a nef-polyhedron

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Assessing the facet of a halfedge in a nef-polyhedron


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Assessing the facet of a halfedge in a nef-polyhedron
  • Date: Tue, 16 Mar 2010 11:51:38 +0100

Martin Baeker wrote:
Dear experts,

when I create a Nef-Polyhedron, I can easily iterate over all its
(half)edges like this: (The Nef_polyhedron is called Cube here)

for(Nef_polyhedron::Halfedge_const_iterator
e = Cube.halfedges_begin(),
end = Cube.halfedges_end();
e != end; ++e)
{
// do stuff
}

Is there a way to get at the facet(s) that are bordered by e?

I guess the function incident_sface described here:
http://www.cgal.org/Manual/last/doc_html/cgal_manual/Nef_3_ref/Class_Nef_polyhedron_3-Traits---Halfedge.html#Function_SFace_const_handle_incident_sface69_const;
should do the job.

hth

S.

The
spherical-map concept allows to adress SFaces, but these seem not to
be identical to the facets of the polyhedron - I have to admit that
I'm a bit confused by the spherical-map concept...

Thanks a lot for any help,

Martin.


Priv.-Doz. Dr. Martin Bäker
Institut für Werkstoffe
Technische Universität Braunschweig
Langer Kamp 8
38106 Braunschweig
Germany
Tel.: 00-49-531-391-3073
Fax 00-49-531-391-3058
e-mail
<>




Archive powered by MHonArc 2.6.16.

Top of Page