Subject: CGAL users discussion list
List archive
- From: Per Zetterlund <>
- To:
- Subject: Re: [cgal-discuss] Moving vertex
- Date: Wed, 25 Jun 2014 10:02:30 +0200
Maybe I'm doing something wrong,
but I get:
error: no match for ‘operator+=’ (operand types are
‘CGAL::Point_3<CGAL::Epick>’ and
‘__gnu_cxx::__alloc_traits<std::allocator<CGAL::Vector_3<CGAL::Epick>
> >::value_type {aka CGAL::Vector_3<CGAL::Epick>}’)
So I have to do
Point& p = vertex.point();
p = (p + Vector(deltaX, deltaY, 0));
/Per
On Tue, May 20, 2014 at 10:41 AM, Giles Bathgate
<>
wrote:
> 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
>>
>>
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>
- Re: [cgal-discuss] Moving vertex, Per Zetterlund, 06/25/2014
Archive powered by MHonArc 2.6.18.