[vtkusers] question ? [vtkPlane]
Agata Krasoń
agatakrason at gmail.com
Tue Mar 25 16:44:51 EDT 2014
Hello,
I have a question concering vtkPlane. I set two points and I want to create
a plane and use it in vtkCutter. Finally I want to clip a mesh in this
place.
Is there any possibility to to set two points and create vtkPlane ?
* double p1[3] = {26.4345, 12.3461, 15.3201};*
* double p2[3] = {22.496, 15.3133, 15.9631};*
* vtkSmartPointer<vtkPlane> plane = vtkSmartPointer<vtkPlane>::New();*
* // plane->SetOrigin(0,0,0);*
vtkSmartPointer<vtkCutter> cutter = vtkSmartPointer<vtkCutter>::New();
cutter->SetCutFunction(plane);
cutter->SetInputConnection(reader->GetOutputPort());
cutter->Update();
I would appreciate for any help please :)
Best,
Agata
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140325/ea384a89/attachment.html>
More information about the vtkusers
mailing list