Dear All,<br style=""><br style="">I have a problem with vtkCutter. I don't know how to use vtkCutter with<br style="">unstructed grid. I created below presented program :<br style=""><br style="">vtkPolyDataMapper *cutMapper=vtkPolyDataMapper::New();<br style="">
vtkStripper *cutStripper= vtkStripper::New(); vtkPolyDataNormals<br style="">*cutpoly=vtkPolyDataNormals::New();<br style="">cut = vtkCutter::New();<br style="">cut->SetInput(ugrid);<br style="">cut->SetValue(0,0.5);<br style="">
vtkActor *Acut = vtkActor::New();<br style="">cutpoly->SetInput(cut->GetOutput());<br style="">cutStripper->SetInput(cutpoly->GetOutput());<br style="">cutMapper->SetInput(cutStripper->GetOutput());<br style="">
Acut->SetMapper(cutMapper);<br style="">vtkWindow1->GetRenderer()->AddActor(Acut);<br style="">vtkWindow1->Invalidate();<br style=""><br style="">but I cannot see any change in my object.<br style=""><br style="">
Could somebody be so kind to point out what's wrong with my code?<br style=""><br style="">I would be very grateful for any suggestion what I should modify or check.<br style=""><br style="">Thanks in advance and<br style="">
Best regards<br style=""><br style="">Tomasz