chrisidefix / cgal-bindings

Automatically exported from code.google.com/p/cgal-bindings
Boost Software License 1.0
0 stars 0 forks source link

Missing copy constructor / free function for Triangulations #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to copy Triangulation_* classes but it would seem 
only the default constructors are exposed to the wrapping.

Original issue reported on code.google.com by anthony.truchet@gmail.com on 4 Jul 2014 at 11:59

GoogleCodeExporter commented 9 years ago
More precisely there is a .deepcopy() method on Triangulation_2_wrapper but 
when calling ``cdt2 = cdt.deepcopy()`` when ``cdt`` is a 
``Mesh_2_Constrained_Delaunay_triangulation_plus_2`` returns some class which 
has no notion of constraints (a simple Triangulation_2 I reckon).

Original comment by anthony.truchet@gmail.com on 4 Jul 2014 at 12:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sébastien Loriot has kindly indicated a work-around which is OK in my use-case:

t1=TRIANGULATION_TYPE()
t2=TRIANGULATION_TYPE()
t1.deepcopy(t2) 

Original comment by anthony.truchet@gmail.com on 4 Jul 2014 at 2:46

GoogleCodeExporter commented 9 years ago
278ddec

Original comment by sloriot...@gmail.com on 4 Jul 2014 at 3:35