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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user