You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/contactDetection/ContactDetectionMPR/mpr.jl
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ end
66
66
# checks if centers of shapeA and shapeB are overlapping
67
67
# belongs to construction of r0
68
68
functioncheckCentersOfShapesOverlapp(r0::SupportPoint{T}, shapeA::Composition.Object3D, shapeB::Composition.Object3D) where {T}
69
-
ifnorm(r0.p) <= Modia3D.nepsMPR(T)
69
+
ifnorm(r0.p) <= Modia3D.nepsType(T)
70
70
error("MPR: Too large penetration (prerequisite of MPR violated). Centers are overlapping. Look at $(Modia3D.fullName(shapeA)) and $(Modia3D.fullName(shapeB)).")
71
71
end
72
72
end
@@ -76,7 +76,7 @@ function checkIfShapesArePlanar(r0::SupportPoint,r1::SupportPoint,r2::SupportPoi
76
76
shapeA::Composition.Object3D,shapeB::Composition.Object3D) where {T}
77
77
# r3 is in the direction of plane normal that contains triangle r0-r1-r2
78
78
n3 =cross(r1.p-r0.p, r2.p-r0.p)
79
-
neps = Modia3D.nepsMPR(T)
79
+
neps = Modia3D.nepsType(T)
80
80
# the triangle r0-r1-r2 has degenerated into a line segment
81
81
ifnorm(n3) <= neps
82
82
# change search direction for r2
@@ -127,7 +127,7 @@ function tetrahedronEncloseOrigin(r0::SupportPoint, r1::SupportPoint,
0 commit comments