Port closest points fix from tuhopuu - should return positive distance.
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sun, 16 May 2004 13:13:41 +0000 (13:13 +0000)
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>
Sun, 16 May 2004 13:13:41 +0000 (13:13 +0000)
extern/solid/src/DT_Object.cpp

index d5e487cf3f076f94057cf15cb066745ff775f3b6..ed43a7bdaf209afad620d448bef1d2f10d311d4d 100755 (executable)
@@ -245,7 +245,7 @@ MT_Scalar closest_pointsComplexConvex(const DT_Shape& a, const MT_Transform& a2w
                                                        (b_margin > MT_Scalar(0.0) ? static_cast<const DT_Convex&>(DT_Minkowski(tb, DT_Sphere(b_margin))) : static_cast<const DT_Convex&>(tb)), pa, pb);
     }
     
-    return -closest_pointsComplexConvex(b, b2w, b_margin, a, a2w, a_margin, pb, pa);
+    return closest_pointsComplexConvex(b, b2w, b_margin, a, a2w, a_margin, pb, pa);
 }
 
 MT_Scalar closest_pointsComplexComplex(const DT_Shape& a, const MT_Transform& a2w, MT_Scalar a_margin,