[vtkusers] How to clip vtkImageData
Chou Yi-Yu
chouyiyu at hotmail.com
Thu Jul 22 16:14:28 EDT 2004
Dear vtk users,
I have a 3D image (image) with vtkImageData format.
I want to clip it by the following pipeline :
.....................................................................................................
plane = vtkPlane()
plane.SetOrigin(0.25,0,0)
plane.SetNormal(0,0,1)
clipper = vtkClipPolyData()
clipper.SetInput(image)
clipper.SetClipFunction(plane)
clipper.GenerateClippedOutputOn()
clipper.SetValue(0.5)
clipMapper = vtkPolyDataMapper()
clipMapper.SetInput(clipper.GetOutput())
clipActor = vtkActor()
clipActor.SetMapper(clipMapper)
.............................................................................................................................
However, clipper.SetInput() requires a vtkPolyData not vtkImageData.
How should I do ???????
Thanks in advance !!!
YY
_________________________________________________________________
立即申請 MSN Mobile 服務:在您的手機上收發 MSN Hotmail
http://msn.com.tw/msnmobile
More information about the vtkusers
mailing list