[vtkusers] is vtkClipPolyData slow?

Sam Raby rabysam28 at gmail.com
Wed Jun 25 19:35:26 EDT 2014

Hi Again,
I am testing also another VTK example as well where vtkClipPolyData is used
to clip a vtkSphereSource:


But once I replace the vtkSphereSource with the segmented head (see the
image attached), the clipping becomes slow. I have tried to clean and
decimate the polydata but they did not make the clipping faster. Is there
any trick or hint here?


On Wed, Jun 25, 2014 at 2:53 AM, Sam Raby <rabysam28 at gmail.com> wrote:

> Hi -
> 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?
> vtkSmartPointer<vtkPlane> clipPlane =  vtkSmartPointer<vtkPlane>::New();
> clipPlane->SetNormal(1, 1, 0);
> clipPlane->SetOrigin(0.0, -10.0, 0.0 );
> vtkSmartPointer<vtkClipPolyData> clipper =
> vtkSmartPointer<vtkClipPolyData>::New();
> clipper->SetInputData( reader->GetOutput() );
> clipper->SetClipFunction( clipPlane );
> thanks
> -S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140625/52a5d69b/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clippedHead.gif
Type: image/gif
Size: 42520 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140625/52a5d69b/attachment-0001.gif>

More information about the vtkusers mailing list