1
0
mirror of https://gitlab.com/MisterBiggs/stl-process.git synced 2025-08-05 13:01:23 +00:00

tiny changes

This commit is contained in:
2022-04-20 15:31:05 -07:00
parent 3bea515061
commit 2449fd17cf
4 changed files with 12 additions and 13 deletions

View File

@@ -64,7 +64,7 @@ end
[2, 4, 8],
), # h, d, w = 2, 4, 8
"slender_y.stl" => Properties(
10 * π * 0.1^2,
10 * π * 0.05^2,
center,
diagm([1, 0, 1]) .* (10^2 / 12),
2π * 0.05 * (0.1 + 10),
@@ -87,10 +87,10 @@ end
@testset "get_mass_properties for $model" begin
props = get_mass_properties(stl)
@test props.volume control.volume atol = 0.5
@test props.volume control.volume rtol = 0.1
@test props.center_of_gravity control.center_of_gravity atol = 0.01
@test eigvals(props.inertia) eigvals(control.inertia) atol = 0.1
@test props.surface_area control.surface_area atol = 0.5
@test eigvals(props.inertia) eigvals(control.inertia) atol = 0.01
@test props.surface_area control.surface_area atol = 0.2
@test props.characteristic_length control.characteristic_length atol = 0.5
@test props.sb_values control.sb_values atol = 0.01
end