[Insight-users] [vtkusers] Cutting a volume
Jafari, Kourosh
kjafari at rad.hfh.edu
Mon Jun 20 08:45:36 EDT 2011
Hi Xiapeng,
It depends on what kind of curved plane you would like to make and how interactively you would like to change it. Here is an example:
1. Use splineWidget to create a curved line.
2. Use the above splineWidget to create a parametric function by vtkParametricFunctionSource.
3. Translate the above curved line by vtkTransform in the Z direction.
4. Combine #2 and #3 by vtkAppendPolyData.
5. Use #4 as input of a vtkRuledSurfaceFilter.
6. The output of vtkRuledSurfaceFilter is a curved surface generated by connecting the vertices of the two lines that you generated in steps 2 and 3.
You also need to apply a transformation on the lines to make sure they are located in the right place in the world coordinate system.
I hope this helps.
Best,
Kourosh
________________________________
From: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] On Behalf Of Xiaopeng Yang [yxp233 at postech.ac.kr]
Sent: Monday, June 20, 2011 2:57 AM
To: 'vtk'; insight-users at itk.org
Subject: [vtkusers] Cutting a volume
Dear VTK users,
I have applied vtkClipPolyData to cut a volume with a flat plane generated by vtkPlane. Now I would like to cut the volume with a customized curved plane, which means that I can change the shape and location of the plane interactively. Could you please tell me how to make a customized curved cutting plane?
Thank you very much!
Best regards,
Xiaopeng
---------------------------------------------------------------------
Xiaopeng Yang, Ph.D. candidate
Ergonomic Design Technology Lab
Department of Industrial & Management Engineering
Pohang University of Science and Technology
Pohang, Kyungbuk 790-784, South Korea
Office. +82-54-279-8247 Cell. +82-10-9794-0110
---------------------------------------------------------------------
More information about the Insight-users
mailing list