Skip to content

Commit 14a631e

Browse files
committed
volume should be positive
1 parent e4ceb21 commit 14a631e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quality.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function volume_edge_ratio(a,b,c,d)
9797
edges = (t,u,v,a.-b,b.-c,a.-c)
9898
lengths = dot.(edges,edges)
9999
l_rms = sqrt(sum(lengths)/6)
100-
return sqrt(2)*volume/(l_rms^3)
100+
return sqrt(2)*abs(volume)/(l_rms^3)
101101
end
102102

103103
"""

0 commit comments

Comments
 (0)