omrips / viewstl

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

Model Rotation Reset #31

Open unclechunk opened 1 year ago

unclechunk commented 1 year ago

Is there a way to reset the model position to the position it started when uploaded? I know we can set the rotation but that's based on its current position, so if it's been moved via the mouse or similar then it's not rotating from a default point. Ideally, the rotation would be from the loaded-in position. A set_position_default would be great, if there any way of doing this? Is there any position information saved when the model is loaded, so we can return to that position?