[vtkusers] Volume Clipping
Andras Lasso
lasso at queensu.ca
Tue Feb 21 08:58:07 EST 2017
Have a look at how the scissors tool is implemented in 3D Slicer’s segment editor module. It’s all in VTK, quite fast (creates a polydata mask and applies that to the volume), and works for both parallel and perspective projection.
https://www.youtube.com/watch?v=m4zTj8i4tCA
Source code:
https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/EditorEffects/qSlicerSegmentEditorScissorsEffect.cxx
Andras
From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Ramao Balta
Sent: February 21, 2017 7:38
To: vtkusers at vtk.org
Subject: [vtkusers] Volume Clipping
Dear vtkUsers,
I am looking for an example of how to clip a volume for a long time, I found a lot of questions but no complete answer for that.
The tool I would like to use is present in Osirix by the name of scissors, with this tool, you draw over a 3d rendering and remove part of the image data from the volume.
I tryed vtkClipVolume and vtkCutter, they are interenting classe because you use two input functions, one for vtkImageData and another for the polydata but these classes
are too slow, specially when we compare with other applications that make the job in a blink of eyes.
Thanks a lot
Ramão Balta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170221/3fe8c838/attachment.html>
More information about the vtkusers
mailing list