mirror of
https://gitlab.com/MisterBiggs/stl-process.git
synced 2025-08-03 20:11:31 +00:00
add comments
This commit is contained in:
@@ -52,7 +52,7 @@ end
|
||||
|
||||
models = Dict(
|
||||
# Inertia math: https://en.wikipedia.org/wiki/List_of_moments_of_inertia#List_of_3D_inertia_tensors
|
||||
# Properties(volume, center_of_gravity, inertia)
|
||||
# Properties(volume, center_of_gravity, inertia, surface_area)
|
||||
"cube.stl" => Properties(2.0^3, center, I_mat .* 2^2 / 6, 6 * 2^2), # l = 2
|
||||
"sphere.stl" => Properties(4 / 3 * pi, center, I_mat .* 2 / 5, 4π), # r = 1
|
||||
"2_4_8_cuboid.stl" =>
|
||||
|
Reference in New Issue
Block a user