1
0
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:
2022-04-02 12:17:45 -07:00
parent 2fd254e08d
commit a14208245d
4 changed files with 44 additions and 2 deletions

View File

@@ -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