<div dir="ltr"><div>Hi -</div><div><br></div><div>I have the following codes to clip a model, but when I update the Plane to generate the new clipped surface it is very slow. Is there a way to make this faster? or is there another vtk class to perform faster?</div>
<div><br></div><div>vtkSmartPointer<vtkPlane> clipPlane = vtkSmartPointer<vtkPlane>::New();<br></div>
clipPlane->SetNormal(1, 1, 0);<br>clipPlane->SetOrigin(0.0, -10.0, 0.0 );<br><br>vtkSmartPointer<vtkClipPolyData> clipper = vtkSmartPointer<vtkClipPolyData>::New();<br>clipper->SetInputData( reader->GetOutput() );<br>
clipper->SetClipFunction( clipPlane );<pre style="margin-top:0px;margin-bottom:0px"></pre><div><br></div><div>thanks</div><div>-S</div></div>