[vtkusers] Problem with vtkCutter

Tomasz Wolański wolantom at gmail.com
Fri Jan 8 09:42:29 EST 2010


Dear All,

I have a problem with vtkCutter. I don't know how to use vtkCutter with
unstructed grid. I created below presented program :

vtkPolyDataMapper *cutMapper=vtkPolyDataMapper::New();
vtkStripper *cutStripper= vtkStripper::New(); vtkPolyDataNormals
*cutpoly=vtkPolyDataNormals::New();
cut = vtkCutter::New();
cut->SetInput(ugrid);
cut->SetValue(0,0.5);
vtkActor *Acut = vtkActor::New();
cutpoly->SetInput(cut->GetOutput());
cutStripper->SetInput(cutpoly->GetOutput());
cutMapper->SetInput(cutStripper->GetOutput());
Acut->SetMapper(cutMapper);
vtkWindow1->GetRenderer()->AddActor(Acut);
vtkWindow1->Invalidate();

but I cannot see any change in my object.

Could somebody be so kind to point out what's wrong with my code?

I would be very grateful for any suggestion what I should modify or check.

Thanks in advance and
Best regards

Tomasz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100108/971fe858/attachment.htm>


More information about the vtkusers mailing list