Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Voronoi adapter edge rejector


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Voronoi adapter edge rejector
  • Date: Wed, 13 Nov 2013 11:41:07 +0100
  • Organization: GeometryFactory

Following the documented API I would use

VD::Edge_rejector edge_rejector =
voronoi.adaptation_policy().edge_rejector_object();
if( !edge_rejector(delaunay, delaunayEdge) ) ...

Note that I haven't tested it.

Sebastien.



On 10/08/2013 11:41 AM, Martin Uhrin wrote:
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





Archive powered by MHonArc 2.6.18.

Top of Page