Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3D surface mesh generation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3D surface mesh generation


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] 3D surface mesh generation
  • Date: Tue, 24 Jun 2008 13:00:58 +0200

On Tuesday 24 June 2008 12:24:34 Hui Ding wrote:
> Hi,
>
> Since I made my implicit function, I got an
> "Surface_mesh_default_triangulation_3" which I named it "tr". My question
> is: Is there anyway to return only the facets or vertices of the surface?
> Thanks a lot.

Use the 2D complex in 3D triangulation. The variable is probably named c2t3.
The documentation is here:
http://www.cgal.org/Manual/3.3/doc_html/cgal_manual/Surface_mesher_ref/Concept_SurfaceMeshComplex_2InTriangulation_3.html

A facet f is on the surface iff c2t3.face_status(f)!=NOT_IN_COMPLEX. If you
want to iterate of facets of the surface, you can use the sequence
c2t3.facets_begin(), c2t3.facets_end()
The iterators have type Facet_iterator (defined in the C2T3).

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page