[vtkusers] PolyData Transform

José Santamaría López jsantam at ugr.es
Mon Apr 16 19:10:28 EDT 2007


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);
....
....





More information about the vtkusers mailing list