[vtkusers] urgent help needed !

Pallavi Joshi pallavi.joshi at vanderbilt.edu
Mon Jul 19 14:32:47 EDT 2004


  Hi,
  I am trying to deform a mesh but not able to get right results. Here is the code I am using:
  vtkTransform *t1 = vtkTransform::New();
      t1-> Translate(0.0170560,    3.7819819,    7.8705144);
      t1-> RotateX(10.5782137); //In degrees?
      t1-> RotateY(0.0050671);
      t1-> RotateZ(-0.1541998);
      t1-> Scale(0.9086602,    0.9558412,    0.9022964);
  vtkTransformPolyDataFilter *finalmesh1 = vtkTransformPolyDataFilter::New();
      finalmesh1->SetInput ( mesh->GetOutput() );
      finalmesh1->SetTransform ( t1 );

  Please let me know what is wrong in this. I am not able to figure out why I can't get right results with this. 
  Please help......
  --Pallavi


  -------------------------------------------------------------------
  Pallavi Joshi
  Graduate Student
  Medical Image Processing Lab
  Vanderbilt University

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040719/c12798ec/attachment.htm>


More information about the vtkusers mailing list