CGAL / cgal-swig-bindings

CGAL bindings using SWIG
Other
342 stars 93 forks source link

Delaunay to Voronoi #172

Open ryanelandt opened 4 years ago

ryanelandt commented 4 years ago

I'm trying to convert a Delaunay triangulation to a Voronoi diagram by following this example.

The parallel example in Python found here doesn't appear to convert a DT to a VD, just interact with a VD.

I can't figure out how to call Delaunay_triangulation_adaptation_traits_2 or Delaunay_triangulation_caching_degeneracy_removal_policy_2 from Python which is where I am stuck. Is there something I am missing? Any help is appreciated; thanks.

sloriot commented 4 years ago

Actually the adaptor is not available in the bindings so I advice you to use the primal and then the dual functions. Depending on what you need you could build a python native structure containing the dual built from the triangulation.