[vtkusers] Clipping a volume

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Tue Nov 12 17:09:37 EST 2002


Looks a bit memory intensive, why not simply send 6 clipping planes to the
mapper directly and use the hardware to do it. You can make 5 of them off
screen and one in the volume. Actually, you can use just one, but if you
take a vtkBoxWidget and pass the planes from that, you should be laughing.

JB

----- Original Message -----
From: "D.M.P.Davies" <dmpd at onetel.net.uk>
To: "Chunyan Jiang" <jiang at TI.FhG.DE>
Cc: "vtkusers" <vtkusers at public.kitware.com>
Sent: Tuesday, November 12, 2002 7:03 PM
Subject: Re: [vtkusers] Clipping a volume


>
>
> 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
>
>
> _______________________________________________
> 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




More information about the vtkusers mailing list