Hello,<div><br></div><div>I am using this particular code to perform the following set of transformations</div><div><br></div><div>Translate -> Rotate -> Translate</div><div><br></div><div>vtkSmartPointer<vtkTransform> ntrans = vtkSmartPointer<vtkTransform>::New();</div>
<div>ntrans->Translate(np);</div><div><br></div><div>vtkSmartPointer<vtkTransform> ptrans = vtkSmartPointer<vtkTransform>::New();</div><div>ptrans->Translate(pp);</div><div><br></div><div><div>vtkSmartPointer<vtkTransform> rotateTrans = vtkSmartPointer<vtkTransform>::New();</div>
<div>rotateTrans->RotateZ(rot_angle);</div><br class="Apple-interchange-newline"></div><div>vtkSmartPointer<vtkTransformPolyDataFilter> nTranslateFilter = </div><div> vtkSmartPointer<vtkTransformPolyDataFilter>::New();</div>
<div>nTranslateFilter->SetInput( polyData ); // polyData is an object of type vtkPolyData</div><div>nTranslateFilter->SetTransform(ntrans);</div><div>nTranslateFilter->Update();</div><div><br></div><div><div>vtkSmartPointer<vtkTransformPolyDataFilter> rotateFilter = </div>
<div> vtkSmartPointer<vtkTransformPolyDataFilter>::New();</div><div>rotateFilter->SetInputConnection( nTranslateFilter->GetOutputPort() );</div><div>rotateFilter->SetTransform(rotateTrans);</div><div>
rotateFilter->Update();</div></div><div><br></div><div><div>vtkSmartPointer<vtkTransformPolyDataFilter> pTranslateFilter = </div><div> vtkSmartPointer<vtkTransformPolyDataFilter>::New();</div><div>pTranslateFilter->SetInputConnection( rotateFilter->GetOutputPort() );</div>
<div>pTranslateFilter->SetTransform(ptrans);</div><div>pTranslateFilter->Update();</div></div><div><br></div><div>vtkSmartPointer<vtkPolyDataMapper> pdmapper = vtkSmartPointer<vtkPolyDataMapper>::New();</div>
<div>pdmapper->SetInputConnection(pTranslateFilter->GetOutputPort() );</div><div>pdmapper->ScalarVisibilityOff();</div><div><br></div><div>vtkSmartPointer<vtkActor> actor = vtkSmartPointer<vtkActor>::New();</div>
<div>actor->SetMapper(pdmapper);</div><div><br></div><div><br></div><div>With this code, I can see that the transformation is done only till rotation. Next translation is not shown. Can anyone point out where I am going wrong? </div>
<div><br></div><div>Thanks in advance</div><div><br></div><div>Regards</div><div>Rakesh Patil</div><div><br></div>