How to rotate or change orientation of plane node

Hello,

Sorry if this is a dumb question!

Once I’ve set the origin and axes of my newly created plane node, how can I change the orientation of the plane? Is there a way to simply initialize it with initial orientation parameter or do I need to apply a transform using linear algebra?

Programmatically please.

Thanks a lot!

If you only care about the normal direction, you can initialize the orientation with the plane using SetNormal/SetNormalWorld.

You can also define the orientation matrix of the plane directly using:

orientationMatrix = vtk.vtkMatrix4x4()
#... update orientation matrix
planeNode.GetObjectToBaseMatrix().DeepCopy(orientationMatrix)