Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Suggested ways to construct curve from border line of Polyhedron_3

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Suggested ways to construct curve from border line of Polyhedron_3


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Suggested ways to construct curve from border line of Polyhedron_3
  • Date: Wed, 02 Oct 2013 18:49:50 +0200
  • Organization: GeometryFactory

On 10/02/2013 01:55 PM, Matti Lehtonen wrote:
Hi,

are there any suggestions for the best way to construct curves (or
ordered lists of vertices/points) of border line of Polyhedron_3?

There are functions like Halfedge_iterator P.border_halfedges_begin
() or Edge_iterator P.border_edges_begin(), but documentation do not
say anything about halfedge/edge order at border (or I missed that
statement).
For each halfedge in the range of border halfedges, use next() while you are not back to the first one and use a set to collect already visited halfedge (to no do the walk again). You can also add an attribute in the halfedge.

Sebastien.



Matti Lehtonen
--
Life is complex. It has real and imaginary parts.




Archive powered by MHonArc 2.6.18.

Top of Page