Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss][] how to push modified vertex back to Polyhedron data structure?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss][] how to push modified vertex back to Polyhedron data structure?


Chronological Thread 
  • From: Andreas Fabri <>
  • To:
  • Subject: Re: [cgal-discuss][] how to push modified vertex back to Polyhedron data structure?
  • Date: Thu, 24 Apr 2008 19:26:15 +0200

samuel kim wrote:
Hi all,

How can the intentionally modified votex value be pushed back into the data
structure? The below is an example source code I want to do.
for(Point_iterator pPoint = points_begin();pPoint !=
points_end();pPoint++)
{
double mdx = pPoint->x()*3.0;
double mdy = pPoint->y()*3.0;
double mdz = pPoint->z()*3.0;
here, how to store the modified vertex(mdx,mdy,mdz) into
pPoint->x,y,z?
}

Anyone knows this? Thanks.

Samuel


Samuel,

You can't as points are not modifiable. You need the vertex_iterator
and call vi->point() = Point(mdx,mdy,mdz)

andreas



Archive powered by MHonArc 2.6.16.

Top of Page