Set identity transform on vtkOrientedGridTransform

Hi everyone,
I would like to know if there was a direct API to reset a vtkOrientedGridTransform to identity.
Is there any workaround to do it?
If not I was planning to set zeros in the displacement fields manually.

Thanks in advance for any feedback!

Yes, you can set displacements to 0 in the coefficient image as it is done in Documentation/Nightly/ScriptRepository - Slicer Wiki by calling:

1 Like

Sorry I try and let you know

Since displacement field has 3 components, maybe you need to use FillComponent(component, 0) for component 0, 1, 2 (instead of just Fill(0)).

Your solution was correct and did the job.



1 Like