Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem with storing handles as member objects

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem with storing handles as member objects


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with storing handles as member objects
  • Date: Tue, 06 Jul 2010 07:48:38 +0200

Costas Tsirogiannis wrote:
Greetings,

I have a problem with run-time errors coming from an unorthodox use of handles:

I make use of a triangulation and of an augmented polyhedron_3 object. This augmented polyhedron
is a refinement of the surface represented by the triangulation : as some algorithm goes on, new edges
are added on what used to be the triangular faces. It is important that the halfedges,faces and vertices
on the polyhedron that originate from features of the triangulation should point to the corresponding triangulation
features. Thus each feature stores a handle of the original triangulation object: a polyhedron vertex stores a handle
to the original triangulation vertex of the same coordinates, a halfedge stores a handle to the triangulation edge or
face on which it lies etc.
When a feature is refined eg a halfedge is split, these stored handles of triangulation features are copied to
the newly created features. And then segmentation faults appear.
What do you use to split halfedges ? (the underlying question being how
your handles are set)

Specifically, things go wrong when there is an attempt
to access the handle member object of the new feature outside of the function that created the feature (and copied the
handle object to it). Any ideas for what could fix this?

thanks

Constantinos





Archive powered by MHonArc 2.6.16.

Top of Page