[vtkusers] Cutting using vtkPlaneWidget.

R K Shyamprakash ramakrishna.prakash at quest-global.com
Thu Jul 24 04:22:04 EDT 2003


following code is in java

vtkPlane plane = new vtkPlane();
vtkPlaneWidget.GetPlane(plane);

vtkClipPolyData clipper = new vtkClipPolyData();
clipper.SetInput(yourPolyData);
clipper.SetClipFunction(plane);
clipper.InsideOutOn();//optional, based on your need

the output of clipper will be the polydata you are interested in.

for more info, look at vtkPlaneWidget documentation. 

--Shyam

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
Said.
Sent: Thursday, July 24, 2003 12:39 PM
To: vtkusers
Subject: [vtkusers] Cutting using vtkPlaneWidget.


Hi vtk users,

In the application I'm developping, I use vtkPlaneWidget to cut with a
plane. In fact(see screnshot below) When I supperpose the vtkPlaneWidget
I hope only get the half of the geometry I'm drowing, In this case It's
a Falcon.

Mybe some of you have an idea.




More information about the vtkusers mailing list