<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style="COLOR: #0000ff; FONT-FAMILY: Comic Sans MS" bgColor=#ffffff>
<BLOCKQUOTE id=0><LABEL id=HbSession SessionId="2194796237"></LABEL>
<DIV><FONT size=2>Hi,</FONT></DIV>
<DIV><FONT size=2>I am trying to deform a mesh but not able to get right
results. Here is the code I am using:</FONT></DIV>
<DIV><FONT size=2>vtkTransform *t1 =
vtkTransform::New();<BR> t1->
Translate(0.0170560, 3.7819819,
7.8705144);<BR> t1-> RotateX(10.5782137); //In
degrees?<BR> t1->
RotateY(0.0050671);<BR> t1->
RotateZ(-0.1541998);<BR> t1->
Scale(0.9086602, 0.9558412,
0.9022964);</FONT></DIV>
<DIV><FONT size=2>vtkTransformPolyDataFilter *finalmesh1 =
vtkTransformPolyDataFilter::New();<BR>
finalmesh1->SetInput ( mesh->GetOutput() );<BR>
finalmesh1->SetTransform ( t1 );</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>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. </FONT></DIV>
<DIV><FONT size=2>Please help......</FONT></DIV>
<DIV><FONT size=2>--Pallavi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face="Comic Sans MS" color=#0000ff
size=2>-------------------------------------------------------------------<BR>Pallavi
Joshi<BR>Graduate Student<BR>Medical Image Processing Lab<BR>Vanderbilt
University<BR></FONT></DIV></BLOCKQUOTE>
<P></P></BODY></HTML>