Subject: CGAL users discussion list
List archive
- 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
>
>
- [cgal-discuss] Moving vertex, Per Zetterlund, 05/20/2014
- Re: [cgal-discuss] Moving vertex, Giles Bathgate, 05/20/2014
Archive powered by MHonArc 2.6.18.