Subject: CGAL users discussion list
List archive
- From: Michael Balzer <>
- To:
- Subject: problem with CGAL:intersection()
- Date: Fri, 03 Aug 2007 17:37:42 +0200
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=X6tpvJiGutFlklNhFqm1jWjlGcGwdx807U3tn/tlJkapWIQBDOiAkV0KvgkBZ9wdI4mXJhzeHYhBG3L4ZShmqcp8G9307kaIKVAZadBhjheUPEBIcdEX5RvKb0UzvvHQXLHR0JrpXCh/Ry28QYCF+fMS6oQ7vWZJwVIrazRqAew=
Hi,
I encountered a strange problem by making intersection tests between Line_2 and Segment_2. Sometimes, I get no intersections when there must be one.
Example (from debug output):
----------------------------
Debug: "edge from (1014,10) to (1014,718)"
Debug: "line.y_at_x( 1014 ) = 300.902"
Debug: "line.x_at_y( 10 ) = 1837.88"
Debug: "line.y_at_x( 1014 ) = 300.902"
Debug: "line.x_at_y( 718 ) = -167.281"
Debug: "CGAL::intersection( edge, line ): no intersection found"
Debug: "edge from (10,718) to (10,10)"
Debug: "line.y_at_x( 10 ) = 655.404"
Debug: "line.x_at_y( 718 ) = -167.281"
Debug: "line.y_at_x( 10 ) = 655.404"
Debug: "line.x_at_y( 10 ) = 1837.88"
Debug: "CGAL::intersection( edge, line ): intersection at (10,655.404)"
This means I have two vertical segments which both must have an intersection with the given line. But for the first segment I get no intersection. :(
My implementation is exactly the same as in the CGAL::intersection example in the manual. By the way, I'm using a CGAL::Cartesian< double> kernel.
Are their any known problems with this function, or has someone a hint what might be wrong?
Michael :)
- problem with CGAL:intersection(), Michael Balzer, 08/03/2007
Archive powered by MHonArc 2.6.16.