[vtkusers] Clipping a volume

D.M.P.Davies dmpd at onetel.net.uk
Tue Nov 12 14:03:29 EST 2002


Chunyan Jiang wrote:

> Hi, all,
> I have a certain vtkStructuredPoints to display the volume on screen.
> Now I want to create a clipping plane, such that all data on one side of
> the plane is visible, and on the other side of the plane the volume is not
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

Hi Jiang,

I do this as follows (apologies for the notation):

vtkStructuredPoints(pts) ->vtkGeometryFilter (now unstructured)->vtkGeometryFilter (boundary)

Then :
vtkPlane(imp)->vtkClipPolyData(input boundary) ->vtkAppendPolyData(polys)

And:
vtkCutter (input pts  and imp)->vtkAppendPolyData(polys)
Finally:

polys->vtkPolyDataMapper->vtkActor.

This seems to work ok. Could. send a tcl script if needed.

All The Best.

Dave Davies





More information about the vtkusers mailing list