[vtkusers] changed vtkpolydata from vtkactor

Marc Huber marchuber.hft at gmx.de
Tue Apr 9 05:57:33 EDT 2013


Hi,

can someone tell me how i extract changed polydata from an actor after 
doing a rotation?

I'm doing this until now:
     ...
     stlActor->RotateX(rot);
     ui.qvtkWidget->repaint();
     vtkSmartPointer<vtkPolyData> editedSTL = 
vtkSmartPointer<vtkPolyData>::New();
editedSTL->ShallowCopy(stlActor->GetMapper()->GetInput());

My Problem is, that editedSTL gets the point coordinates of my original 
Polydata not the coordinates after rotation.
Can i somehow store the new point coordinates after rotating?

Thanks for any advice

Marc



More information about the vtkusers mailing list