Hi all,<br><br> I'm novel in VTK and I'm trying to transform a vtkOBJReader instance as follows:<br><br>....<br> // Compute the transform<br> vtkMatrix4x4* Matrix4x4 = vtkMatrix4x4::New();<br> computeMatrix(Matrix4x4);
<br><br> vtkTransform* Transform = vtkTransform::New();<br> Transform->SetMatrix(Matrix4x4);<br><br> // Set the 3D model<br> vtkOBJReader* model3D = vtkOBJReader::New();<br> model3D->SetFileName("
model3D.obj");<br><br> // Set the world transform for 3D model transformation <br> vtkTransformPolyDataFilter* TransformPolyDataFilter = vtkTransformPolyDataFilter::New();<br> TransformPolyDataFilter->SetTransform(Transform);
<br> TransformPolyDataFilter->SetInput(model3D->GetOutput());<br> <br> model3D->Delete(); // Free the original 3D model<br><br> // Set the 3D model mapper<br> vtkPolyDataMapper* geomMap = vtkPolyDataMapper::New();
<br> geomMap->ImmediateModeRenderingOn();<br> geomMap->SetInput(TransformPolyDataFilter->GetOutput());<br><br> // Set the 3D model actor<br> vtkActor* geomActor = vtkActor::New();<br> geomActor->SetMapper(geomMap);
<br> geomActor->GetProperty()->SetOpacity(0.3);<br><br> // Create the 3D model renderer<br> vtkRenderer* geomRen = vtkRenderer::New();<br> geomRen->AddActor(geomActor);<br> geomRen->ResetCamera();
<br>....<br><br>The problem is that I've got the same results as without considering<br>the transformation of the 3D model, i.e. the 3D model stays in the<br>same place. Why does it happens?<br><br>Also, I suppose that transforming a PolyData structure means that
<br>it only modify the world coordinates, doesn't it?<br><br>Finally, what is the default setup of (initial conditions) the following<br>VTK camera features?<br><br>+ Location of the eye (in x,y,z coordinates):<br>+ Location of the image plane:
<br>+ Location (behind or front of the image plane?) and <br>magnitude of the focal point:<br><br>I know that it can be too much questions for losing your limited time,<br><font size="-1">so I was wondering if you would be able to help me for any of this
<br>stuff.<br></font><br>Thanks in advance.<br>