gradientspace / geometry3Sharp

C# library for 2D/3D geometric computation, mesh algorithms, and so on. Boost license.
http://www.gradientspace.com
Boost Software License 1.0
1.71k stars 384 forks source link

Is there a way to scale the model in inches? #144

Closed Blargstomp404 closed 4 years ago

Blargstomp404 commented 4 years ago

I have a project that is an figurine editor with different options for scale for 3d printing. It looks like there is a function for it, but I'm still new with geometry3Sharp and need a light help setting it up.

rms80 commented 4 years ago

There are no units in the library. It's up to you to define what "1.0" means. If you decide that is meters, and you want to convert to inches, then you scale by 39.3701.

MeshTransforms.cs has various functions for scaling meshes.