mirror of
https://gitlab.com/MisterBiggs/stl-process.git
synced 2025-08-03 20:11:31 +00:00
added function to find desired scale
This commit is contained in:
@@ -9,7 +9,7 @@ using LinearAlgebra
|
||||
|
||||
function _check_volume(triangles; scale=1)
|
||||
"""
|
||||
Slow algorithm just used to test the other algorithms
|
||||
Slow, inaccurate algorithm just used to test the other algorithms
|
||||
Reference:
|
||||
https://people.eecs.berkeley.edu/~wkahan/VtetLang.pdf
|
||||
"""
|
||||
@@ -75,4 +75,7 @@ end
|
||||
@test props.volume ≈ volume rtol = 0.01
|
||||
end
|
||||
end
|
||||
@testset "Find Scale" begin
|
||||
@test fast_volume(stl; scale=find_scale(stl)) == 1.0
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user