[vtkusers] PolyData Transform
Michael Rice
marice at knology.net
Mon Apr 16 19:40:34 EDT 2007
Set the input of your mapper to the output of the polydata filter:
geomMap->SetInputConnection(TransformPolyDataFilter->GetOutputPort());
On Apr 16, 2007, at 6:10 PM, José Santamaría López wrote:
> Hi everyone,
>
> I'm trying to transform a .OBJ image loaded
> with vtkOBJReader but it is shown without any
> chage. Could someone help me?
>
> Thanks all
>
> ....
> ....
> Transform->SetMatrix(Matrix4x4);
>
> vtkOBJReader* model = vtkOBJReader::New();
> model->SetFileName(model);
>
> TransformPolyDataFilter->SetInput(model->GetOutput()); // ¡¡¡¡
> TransformPolyDataFilter->SetTransform(Transform); // ¡¡¡¡
> TransformPolyDataFilter->Update(); // ¡¡¡¡
>
> vtkPolyDataMapper* geomMap = vtkPolyDataMapper::New();
> geomMap->ImmediateModeRenderingOn();
> geomMap->SetInputConnection(model->GetOutputPort());
>
> vtkActor* geomActor = vtkActor::New();
> geomActor->SetMapper(geomMap);
> ....
> ....
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/
> Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list