Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Borders

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Borders


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Borders
  • Date: Thu, 14 Oct 2010 08:14:59 +0200

Fulvio Mastrogiovanni wrote:
Dear All,

I am playing with the surface parameterization facilities offered by CGAL. When representing a Polyhedron_3 as a 2D surface, I need to extract the border of the 2D UV mapping in terms of vertex coordinates. I guess I must go through the halfedge related structures, but it is not clear to me how to do it.

Any suggestion?

Thanks a lot.

Fulvio

To get halfedges that are on the boundary of a polyhedron,
you must first call function normalize_border() and
then you can use the range [border_halfedges_begin(),halfedges_end() )
to iterate over border halfedges.
To get the incident vertex of a halfedge use vertex() member function
which gives you a handle. Coordinates of the corresponding point can be
retrieved using the member point() function.

See details here:
http://www.cgal.org/Manual/beta/doc_html/cgal_manual/Polyhedron_ref/Class_Polyhedron_3.html


S.


  • [cgal-discuss] Borders, Fulvio Mastrogiovanni, 10/13/2010
    • Re: [cgal-discuss] Borders, Sebastien Loriot (GeometryFactory), 10/14/2010

Archive powered by MHonArc 2.6.16.

Top of Page