I have an actor and it has been transformed in 3D space. It has been rotated and translated. It is somewhere in 3D space. I have a second actor and I want it to be in the same position and orientation as the first object. How would I accomplish this? Is there a function that does this?
Any help would be greatly appreciated.
Questions a bit unclear? What kind of data are we talking about? An actor just represents the data. It is not the data. The data could be an image, polygon, whatever. If they’re polygons or point clouds you could use ICP (iterative closest point). Something along these lines https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/AlignTwoPolyDatas/
if I understand your question you can retrieve the user transformation as
m = actor.GetMatrix()
tr = vtk.vtkTransform()
actor2.SetUserTransform(tr) # or even actor2.SetUserMatrix(m)
check out also methods in