chrisidefix / cgal-bindings

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

Triangulation Hierarchy #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

First, thx you very much for implementing these new bindings! I was so sad to 
see that the project cgal-python stopped...

One request though, it seems that the triangulation hierarchy is not wrapped. 
Do you plan to work on this feature ? Or should I add it myself ;)

Thx,
François

Original issue reported on code.google.com by francois...@gmail.com on 18 Jan 2012 at 9:17

GoogleCodeExporter commented 9 years ago
That's the problem of binding a template library to a language that does not 
have them.

If it's a matter of efficient point location (and no need to expose the specific
API), you can simply change the typedef in SWIG_CGAL/Triangulation_2/typedefs.h 
and 
recompile.

from 
{{{
typedef CGAL::Delaunay_triangulation_2<EPIC_Kernel> CGAL_DT2;
}}}
to
{{{
typedef CGAL::Triangulation_vertex_base_2<EPIC_Kernel>   Vbb;
typedef CGAL::Triangulation_hierarchy_vertex_base_2<Vbb> Vb;
typedef CGAL::Triangulation_face_base_2<EPIC_Kernel>     Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb>      Tds;
typedef CGAL::Delaunay_triangulation_2<EPIC_Kernel,Tds>  Dt_base_2;
typedef CGAL::Triangulation_hierarchy_2<Dt_base_2>       CGAL_DT2;
}}}

Original comment by sloriot...@gmail.com on 19 Jan 2012 at 9:58

GoogleCodeExporter commented 9 years ago
Thx, indeed I just need efficient point location. Will try this. 

Original comment by francois...@gmail.com on 19 Jan 2012 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by sloriot...@gmail.com on 3 Apr 2012 at 7:04