[vtk-developers] xxxxxSPAMxxxxx Problem with vtkCutter

twolanski at poczta.onet.pl twolanski at poczta.onet.pl
Thu Jan 7 06:31: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



More information about the vtk-developers mailing list