Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: Voronoi Diagram and NaN

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: Voronoi Diagram and NaN


Chronological Thread 
  • From: memecs <>
  • To:
  • Subject: [cgal-discuss] Re: Voronoi Diagram and NaN
  • Date: Tue, 15 Nov 2011 04:11:50 -0800 (PST)

Ok so I was wrong. My code is indeed equivalent to the draw_dual fun except
that to be able to rebuild the voronoi faces I iterate through the delaunay
edges incident to a delaunay vertex.

The problem with NaN comes up when I intersect a voronoi segment/ray/line
with a rectangle:


if(CGAL::assign(segment,voronoi_obj)) {
// OK here...
intersection_obj = CGAL::intersection(segment,bbox);
if(CGAL::assign(segment,intersection_obj)) {
// Sometimes I get segment with NaN
}
}

Example:

voronoi segment: 429.5 84 429.5 84
voronoi intersection: 429.5 84 -nan -nan


--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Voronoi-Diagram-and-NaN-tp4042568p4042728.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page