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

made tests like way better

This commit is contained in:
2022-04-05 16:43:36 -07:00
parent a14208245d
commit 834cfc3d1a
8 changed files with 62 additions and 30 deletions

View File

@@ -74,7 +74,7 @@ function get_mass_properties(triangles; scale=1)
inertia[2, 3] = inertia[3, 2] = -(intg[9] - volume .* center_of_gravity[2] .* center_of_gravity[3])
inertia[1, 3] = inertia[3, 1] = -(intg[10] - volume .* center_of_gravity[3] .* center_of_gravity[1])
return Properties(volume, center_of_gravity, inertia)
return Properties(volume, center_of_gravity, inertia ./ volume)
end
function fast_volume(triangles; scale=1)