<div dir="ltr">Hello,<div><br></div><div><br></div><div>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.</div><div>Is there any possibility to to set two points and create vtkPlane ?</div>
<div><br></div><div><b><font color="#ff0000"> double p1[3] = {26.4345, 12.3461, 15.3201};</font></b><br></div><div><div><b><font color="#ff0000"> double p2[3] = {22.496, 15.3133, 15.9631};</font></b></div></div><div><b><font color="#ff0000"><br>
</font></b></div><div><div><b><font color="#ff0000"> vtkSmartPointer<vtkPlane> plane = vtkSmartPointer<vtkPlane>::New();</font></b></div><div><b><font color="#ff0000"> // plane->SetOrigin(0,0,0);</font></b></div>
<div><br></div><div> vtkSmartPointer<vtkCutter> cutter = vtkSmartPointer<vtkCutter>::New();</div><div> cutter->SetCutFunction(plane);</div><div> cutter->SetInputConnection(reader->GetOutputPort());</div>
<div> cutter->Update();</div><div><br></div><div>I would appreciate for any help please :)</div></div><div><br></div><div>Best,</div><div>Agata</div></div>