Skip to content

Commit fa2ba6b

Browse files
committed
use global neps
1 parent 37fd23e commit fa2ba6b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Basics/constantsAndFunctions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
# Epsilon and sign
10-
const neps = sqrt( eps(Modia3D.MPRFloatType) )
10+
const neps = sqrt( eps() )
1111

1212
nepsMPR(::Type{T}) where {T} = sqrt( eps(T) )
1313

src/Shapes/computePropertiesFileMes.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# All faces should be specified in right-handed/counter-clockwise order!
1515

1616

17-
neps = sqrt(eps())
1817

1918
function helpingFunc(w0,w1,w2)
2019
tmp0 = w0 + w1
@@ -70,7 +69,7 @@ function computeMassProperties(vertices::Vector{SVector{3,Float64}}, triangle_in
7069
end
7170

7271
volume = integral[1]
73-
if volume > neps
72+
if volume > Modia3D.neps
7473
# center of volume
7574
centroid = [integral[2], integral[3], integral[4]]/volume
7675

0 commit comments

Comments
 (0)