Ticket #8254 (closed Bugs: fixed)
Faulty intersection calculation
|Reported by:||sascha.knell@…||Owned by:||barendgehrels|
|Milestone:||To Be Determined||Component:||geometry|
I encountered a (supposed) bug in the boost::geometry::intersection functionality.
The calculation of the intersection of a tiny triangle lying in a considerably bigger trapezoid where one edge of the triangle lies (within floating point precision) on one edge of the trapezoid results in an intersection which consists of the original trapezoid with one additional node on one of its sides.
The geometry is given in a C test routine attached to this ticked. The actual call of the intersection functionality is conducted in a C++ wrapper routine, which is also attached. The bug occurred on Mountain Lion with the llvm-gcc-4.2 compiler.