omrips / viewstl

Viewstl Javascript plugin - STL/OBJ 3D files Viewer by viewstl.com
MIT License
199 stars 49 forks source link

Applying dimensions to the .stl file #20

Closed JayEnaR closed 2 years ago

JayEnaR commented 2 years ago

How would I achieve saving the scale/dimensions of the model to the .stl file? For e.g. if I change the scale of the model and use download_model, how can you apply the new dimensions to the file before downloading?

JayEnaR commented 2 years ago

I was expecting the get_model_mesh function's scale property to update once I call the set_scale method on the model. What worked was calling set_scale then get_stl_bin that has the updated scale.