I need to cut a vtkActor, e.g., STL actor, or image Actor or plain polydata actors into 2 actor objects, which can be moved indepandently. However, I’m not sure how this can be done.
using clipPlane can easily ‘cut’ part of the actor, e.g.,
Thanks. but there are issues with existing actor properties, e.g., setting the position and especially orientation of the original actor, position can be set with setPosition(), orientation is different, I couldn’t find a good way. getOrientation() may return (0,0,0) although the actor may already been rotated. there are getMatrix() but no setMatrix(), only setUserMatrix(), I suppose these are different and may have unintended side effects somewhere. Color and other things could also be issues. there are shallowCopy() method for actor, seems to be a little buggy for my purpose as I tried.