- Solution
Thank you for your feedback.
There is BreadthFirstIterator and DepthFirstIterator, see: https://github.com/Ultimaker/Cura/wiki/Cura-Scene-Graph#accessing-scenenodes-in-the-scene
Why should the printer platform itself be sliceable?
Not that you mistake me: I talk about the platform that represents the printer itself in Cura as seen in my screenshot.
Currently I'm iterating through the nodes and save the seemingly right on in a variable to later process it to save time and resources, maybe this somehow copies the platform.
Will check this.
EDIT:
With separate iterator-loops where I move all platform nodes it is working like a charm and does not seem to produce some memory leaks.
That is some good news in the morning. 😄
Recommended Posts
Cuq 206
BreadthFirstIterator You mean DepthFirstIterator ?
Is you use DepthFirstIterator you must check if the node "isSliceable"
Note : setPosition should only "Move" the node so if you also copy there is something else in your code
Edited by CuqLink to post
Share on other sites