Hi all,<br><br>&nbsp;&nbsp; I&#39;m novel in VTK and I&#39;m trying to transform a vtkOBJReader instance as follows:<br><br>....<br>&nbsp;&nbsp;&nbsp; // Compute the transform<br>&nbsp;&nbsp;&nbsp; vtkMatrix4x4* Matrix4x4 = vtkMatrix4x4::New();<br>&nbsp;&nbsp;&nbsp; computeMatrix(Matrix4x4);
<br><br>&nbsp;&nbsp;&nbsp; vtkTransform* Transform = vtkTransform::New();<br>&nbsp;&nbsp;&nbsp; Transform-&gt;SetMatrix(Matrix4x4);<br><br>&nbsp;&nbsp;&nbsp; // Set the 3D model<br>&nbsp;&nbsp;&nbsp; vtkOBJReader* model3D = vtkOBJReader::New();<br>&nbsp;&nbsp;&nbsp; model3D-&gt;SetFileName(&quot;
model3D.obj&quot;);<br><br>&nbsp;&nbsp;&nbsp; // Set the world transform for 3D model transformation&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; vtkTransformPolyDataFilter* TransformPolyDataFilter = vtkTransformPolyDataFilter::New();<br>&nbsp;&nbsp;&nbsp; TransformPolyDataFilter-&gt;SetTransform(Transform);
<br>&nbsp;&nbsp;&nbsp; TransformPolyDataFilter-&gt;SetInput(model3D-&gt;GetOutput());<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; model3D-&gt;Delete();&nbsp; // Free the original 3D model<br><br>&nbsp;&nbsp;&nbsp; // Set the 3D model mapper<br>&nbsp;&nbsp;&nbsp; vtkPolyDataMapper* geomMap = vtkPolyDataMapper::New();
<br>&nbsp;&nbsp;&nbsp; geomMap-&gt;ImmediateModeRenderingOn();<br>&nbsp;&nbsp;&nbsp; geomMap-&gt;SetInput(TransformPolyDataFilter-&gt;GetOutput());<br><br>&nbsp;&nbsp;&nbsp; // Set the 3D model actor<br>&nbsp;&nbsp;&nbsp; vtkActor* geomActor = vtkActor::New();<br>&nbsp;&nbsp;&nbsp; geomActor-&gt;SetMapper(geomMap);
<br>&nbsp;&nbsp;&nbsp; geomActor-&gt;GetProperty()-&gt;SetOpacity(0.3);<br><br>&nbsp;&nbsp;&nbsp; // Create the 3D model renderer<br>&nbsp;&nbsp;&nbsp; vtkRenderer* geomRen = vtkRenderer::New();<br>&nbsp;&nbsp;&nbsp; geomRen-&gt;AddActor(geomActor);<br>&nbsp;&nbsp;&nbsp; geomRen-&gt;ResetCamera();
<br>....<br><br>The problem is that I&#39;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&#39;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>