Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Splitting a polyhedron halfedge and fixing the point of the new vertex

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Splitting a polyhedron halfedge and fixing the point of the new vertex


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Splitting a polyhedron halfedge and fixing the point of the new vertex
  • Date: Thu, 20 May 2010 16:52:28 +0200

Costas Tsirogiannis wrote:

Greetings,

I'm running an algorithm on a Polyhedron_3 object. At some point during the execution
the algorithm decides to split a (half)edge h into two pieces.

Consider the vertex v that is created on (what used to be) the interior of h.
I want the algorithm then to fix the coordinates of v->point() to some specific ones.

How can this be done? There is the spilt_edge member function of the polyhedron but
this actually makes v to be the copy of some pre-existing vertex.
The polyhedron vertex class does not have either any "set_point()" member function.

Can I do something with the de-constified version of vertex->point()?
Hello Costas,

I think vertex->point()=Your_new_point; should work.

S.



thanks in advance

Constantinos




Archive powered by MHonArc 2.6.16.

Top of Page