Background is: we have one CT image in Slicer,and we want to draw 3x ranges(with rectangle format ) in 3x different slices,then we want to link these 3x ranges and show it as cuboid.
Now we can get the start point and end point for each rectangles,but we dont know how to link them.
Can you explain a bit more what you mean by “3x ranges” and what you mean by linking them? Maybe you could draw a picture of what you have in mind?
There are 3x slices which located at different positions, we want to link them as one cuboid,and use interpolation to show the middle slices.
It seems we should create one specific vtk object to contain it. Could you share some suggestions?
The only one difference is:ROI box was based on the specific slice,and the box’s depth is fixed.We want to create one object likes vtk’s cuboid to connect those 3x different slices.
To achieve that, create vtkMRMLTransformNode to your scene and set a vtkGridTransform with 2x2x3 points. Each point specifies how each slice corner point is displaced relative to original corner point position.