Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Moving vertex

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Moving vertex


Chronological Thread 
  • From: Giles Bathgate <>
  • To:
  • Subject: Re: [cgal-discuss] Moving vertex
  • Date: Tue, 20 May 2014 09:41:19 +0100

Well I think you could use:

Point& p = vertex.point();
p += Vector(deltaX, deltaY, 0);

Or:

Point& p = vertex.point();
p.transform(...);

On 20 May 2014 09:34, Per Zetterlund
<>
wrote:
> This might be a stupid question but,
> what is the canonical way to move
> a vertex in a Polyhedron_3? The
> way I do it now is
>
> Point& p = vertex.point();
> Point newPoint(p.x() + deltaX, p.y() + deltaY, 0);
> p = newPoint;
>
> .
>
> Is thera better way?
>
> /Per
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page