Hi Cuq,
Thank you for your very detailed answer.
The function
node.getWorldTransformation().getData()
has indeed return the matrix you showed us. Unfortunately it only correspond to the placement of the bottom of the part on the bed.
We tried to use the centroid and masscenter functions of trimesh in order to try to place the center of milling coordinate system at the same position as the one of the additive coordinate system. With no success.
When it comes to SuperSlicer, it is what we are trying to do in smaller proportions ^^
Thank you very much,
Léo
Recommended Posts
Cuq 206
You can try with :
node.getWorldTransformation().getData()
But not sure you get what you want . In this case it's the Transformation comming from the 3mf file, With a Stl As you have notice it will gives you :
[1. 0. 0. 0.] [0. 1. 0. (height/2)] [0. 0. 1. 0.] [0. 0. 0. 1.]
You can Also Try SuperSlicer As Free Source Code . It already integrate a Slicer + an integrated Function to generate the milling Toolpath :
Again not exactly your request but a good start for this type of project with some interesting option like the milling_extra_size to add some material to the shape to be sure to get enough material to be milled ..
Link to post
Share on other sites