Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Problems on segment Voronoi diagram

Subject: CGAL users discussion list

List archive

[cgal-discuss] Problems on segment Voronoi diagram


Chronological Thread 
  • From: Bai <>
  • To:
  • Subject: [cgal-discuss] Problems on segment Voronoi diagram
  • Date: Thu, 22 Apr 2010 17:01:36 -0800 (PST)


I am constructing Vornoi diagrams using CGAL, the segments are all from a
polygonal line, they are consecutive, and there are
weak intersections as CGAL describes.
Firstly,I chose MP_Float as the data type for EK, however, the running
time is rather slow,
even slower than the results given in the corresponding papar<< A robust and
efficient implementation for the segment Voronoi diagram>>
in 2004.
Then, I chose Simple_cartesian<double> as EK, this time the running time is
rather short , however, the checking function is_valid()
returns false. And for segments more than 5000, the program corrupted.
Could someone give a trait and policy configurtion ,under which I can build
Voronoi diagram of a polygonal line efficiently? Thank you

The following is my current configuration(under which the program runs
quite slow, if replace EK with Simple_cartesian<double>,
the build time is short but for more than 5000 segments the program
corrupts):
typedef CGAL::Quotient<CGAL::MP_Float> ENT;
typedef CGAL::Simple_cartesian<double> CK;
typedef CGAL::Simple_cartesian<ENT> EK;
typedef
CGAL::Segment_Delaunay_graph_filtered_traits_2<CK,CGAL::Field_with_sqrt_tag,
EK, CGAL::Field_tag> Gt;
typedef CGAL::Segment_Delaunay_graph_2<Gt> SDG2;
typedef CGAL::Segment_Delaunay_graph_adaptation_traits_2<SDG2>
TRAIT;
typedef
CGAL::Segment_Delaunay_graph_caching_degeneracy_removal_policy_2<SDG2>
POLICY;
typedef CGAL::Voronoi_diagram_2<SDG2,TRAIT,POLICY> SEG_VD;
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Problems-on-segment-Voronoi-diagram-tp2023020p2023020.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page