'CAD Model rotations and translations in Dash VTK

I have been looking through the Dash vtk documentation to search for a way to open STL files in the browser and be able to translate and rotate those files using python. Essentially like a mini version of CURA where you can just move the model around and rotate it on a build plate.

I was interested in Dash because it was able to draw the meshes for the models, but it only seems to plot the models/meshes. This does not give me the ability to move around the model in some fixed coordinate system and track its position. Is there a way to upload, translate, and rotate a model using Dash or any other pythonic way of achieving this? Or is javascript the only option?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source