Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Voronoi adapter edge rejector

Subject: CGAL users discussion list

List archive

[cgal-discuss] Voronoi adapter edge rejector


Chronological Thread 
  • From: Martin Uhrin <>
  • To:
  • Subject: [cgal-discuss] Voronoi adapter edge rejector
  • Date: Tue, 8 Oct 2013 10:41:58 +0100

Dear CGAL community,

I am using the following setup to generate a Voronoi diagram:

...
typedef CGAL::Delaunay_triangulation_2< K, Tds> Delaunay;
typedef CGAL::Delaunay_triangulation_adaptation_traits_2< Delaunay> AT;
typedef CGAL::Delaunay_triangulation_caching_degeneracy_removal_policy_2<
Delaunay> AP;
typedef CGAL::Voronoi_diagram_2< Delaunay, AT, AP> VD;

which successfully removes degenerate edges from the Voronoi. In part
for my code I iterate over all Delaunay edges and call

voronoi.dual(delaunayEdge)

but this causes assertions because some of the edges are rejected. Is
there a way to check if the Delaunay edge corresponds to a rejected
dual? Or with this setup am I only 'allowed' to go from Voronoi edges
to Delaunay edges and not the other way around?

At the moment I'm using:

if(!voronoi.edge_rejector()(delaunay, delaunayEdge))

but it seems quite clear from the source that edge_rejector(...) is
not API facing code.

Many thanks,
-Martin

--
Martin Uhrin Tel: +44
207 679 3466
Department of Physics & Astronomy Fax:+44 207 679 0595
University College London

Gower St, London, WC1E 6BT, U.K. http://www.cmmp.ucl.ac.uk


  • [cgal-discuss] Voronoi adapter edge rejector, Martin Uhrin, 10/08/2013

Archive powered by MHonArc 2.6.18.

Top of Page