Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Voronoi Diagram and NaN
  • Date: Wed, 16 Nov 2011 08:34:34 +0100

Can you provide a segment and bbox that have that problem so that we can
reproduce it (check that reading them back in a stand-alone program you
still have the issue with NaN)

Sebastien.

memecs wrote:
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