From 9802fdf4c29662db67f712882ddbfc780a695531 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Mon, 18 Jan 2010 03:54:15 +0000 Subject: Fixed a bug in SweepLine.add() that the returned value of GeomUtils::intersect2dSeg2dSegParametric() was not properly tested. Now two collinear line segments are not considered an intersection. --- source/blender/freestyle/intern/geometry/SweepLine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/geometry') diff --git a/source/blender/freestyle/intern/geometry/SweepLine.h b/source/blender/freestyle/intern/geometry/SweepLine.h index e3fb4ad8c0c..386ba3a7388 100755 --- a/source/blender/freestyle/intern/geometry/SweepLine.h +++ b/source/blender/freestyle/intern/geometry/SweepLine.h @@ -298,7 +298,7 @@ public: if(S->CommonVertex(*currentS, CP)) continue; // the two edges have a common vertex->no need to check - if(GeomUtils::intersect2dSeg2dSegParametric(v0, v1, v2, v3, t, u)) + if(GeomUtils::intersect2dSeg2dSegParametric(v0, v1, v2, v3, t, u) == GeomUtils::DO_INTERSECT) { // create the intersection Intersection > * inter = new Intersection >(S,t,currentS,u); -- cgit v1.2.3