How to duplicate a vtkMRMLScalarVolumeNode using Python?

sunshine
Wed, 05 Apr 2023 15:48:44 +0000
Development

Hi everyone,

I am trying to duplicate a vtkMRMLScalarVolumeNode:
node_CopyVolume = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLScalarVolumeNode')

What can I do to copy the volume data from node_OriginVolume to the node_CopyVolume, so that node_CopyVolume can be displayed in the 3D view when node_OriginVolume is changed or removed?

Thank you so much in advance!

6 posts - 2 participants