diff options
author | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:13:41 +0400 |
---|---|---|
committer | Kester Maddock <Christopher.Maddock.1@uni.massey.ac.nz> | 2004-05-16 17:13:41 +0400 |
commit | 15849ce3d2d1d60a4ce194d2ffb05188cfb90aae (patch) | |
tree | 9c2eda6269f85b4eb6f0e999fa5477fe427e8eb7 /extern | |
parent | bab6e5ce3645eaf8fce445e6109fcca390075ead (diff) |
Port closest points fix from tuhopuu - should return positive distance.
Diffstat (limited to 'extern')
-rwxr-xr-x | extern/solid/src/DT_Object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extern/solid/src/DT_Object.cpp b/extern/solid/src/DT_Object.cpp index d5e487cf3f0..ed43a7bdaf2 100755 --- a/extern/solid/src/DT_Object.cpp +++ b/extern/solid/src/DT_Object.cpp @@ -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, |