View Issue Details

IDProjectCategoryView StatusLast Update
0004332Slicer4Core: MRMLpublic2017-06-15 19:29
ReporterShusilAssigned Toalexy 
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in VersionSlicer 4.7.0 
Summary0004332: vtkMRMLAnnotationROINode collapses the Radius to zero when hardening the transform
Description

When Hardening the transform, the radius of vtkMRMLAnnotationROINode collapses to 0.
Attached is the code to reproduce the error.

Steps To Reproduce

import slicer

ROINode = slicer.vtkMRMLAnnotationROINode()
ROINode.SetName('ROINode')
ROINode.SetXYZ((20,20,20))
ROINode.SetRadiusXYZ((10,10,10))
slicer.mrmlScene.AddNode(ROINode)
ROINode.UpdateScene(slicer.mrmlScene)

ROITransformNode = slicer.vtkMRMLTransformNode()
ROITransformNode.SetName('ROITransformNode')
transform = vtk.vtkTransform()
transform.Translate((10,20,30))
ROITransformNode.SetAndObserveTransformToParent(transform)
slicer.mrmlScene.AddNode(ROITransformNode)

center1 = [0]3
ROINode.GetXYZ(center1)
radius1 = [0]
3
ROINode.GetRadiusXYZ(radius1)

ROINode.SetAndObserveTransformNodeID(ROITransformNode.GetID())
logic = slicer.vtkSlicerTransformLogic()
logic.hardenTransform(ROINode)

center2 = [0]3
ROINode.GetXYZ(center2)
radius2 = [0]
3
ROINode.GetRadiusXYZ(radius2)

print( center1, center2 )
print( radius1, radius2 )

TagsNo tags attached.

Activities

lassoan

lassoan

2017-06-15 19:29

developer   ~0014890

Thank you for the very useful bug report. The code that reproduced the problem helped a lot!

Fixed in r26098.

Issue History

Date Modified Username Field Change
2017-01-27 15:29 Shusil New Issue
2017-01-27 15:29 Shusil Status new => assigned
2017-01-27 15:29 Shusil Assigned To => alexy
2017-06-15 19:29 lassoan Status assigned => resolved
2017-06-15 19:29 lassoan Resolution open => fixed
2017-06-15 19:29 lassoan Fixed in Version => Slicer 4.7.0
2017-06-15 19:29 lassoan Note Added: 0014890