<html><div style='background-color:'><DIV></DIV>
<DIV></DIV>
<P>hi,</P>
<P>i am trying to upgrade an old version code to be valid on vtk4.0 the following code is to build 3d how can i map it to be valid on vtk 4.0(written in c++)<BR><BR><BR>/////////////////////////////////////////////////////<BR>vtkTransform *si=vtkTransform::New(); <BR>si->GetMatrix().SetElement(0,0,1);<BR>si->GetMatrix().SetElement(0,1,0);<BR>si->GetMatrix().SetElement(0,2,0);<BR>si->GetMatrix().SetElement(0,3,0);<BR>si->GetMatrix().SetElement(1,0,0);<BR>si->GetMatrix().SetElement(1,1,0);<BR>si->GetMatrix().SetElement(1,2,1);<BR>si->GetMatrix().SetElement(1,3,0);<BR>si->GetMatrix().SetElement(2,0,0);<BR>si->GetMatrix().SetElement(2,1,-1);<BR>si->GetMatrix().SetElement(2,2,0);<BR>si->GetMatrix().SetElement(2,3,0);<BR>si->GetMatrix().SetElement(3,0,0);<BR>si->GetMatrix().SetElement(3,1,0);<BR>si->GetMatrix().SetElement(3,2,0);<BR>si->GetMatrix().SetElement(3,3,1);<BR></P>
<P>vtkTransform *hf=vtkTransform::New(); <BR>hf->GetMatrix().SetElement (0 ,0 ,-1);<BR>hf->GetMatrix().SetElement (0 ,1 ,0);<BR>hf->GetMatrix().SetElement (0 ,2 ,0);<BR>hf->GetMatrix().SetElement (0 ,3 ,0);<BR>hf->GetMatrix().SetElement (1 ,0 ,0);<BR>hf->GetMatrix().SetElement (1 ,1 ,1);<BR>hf->GetMatrix().SetElement (1 ,2 ,0);<BR>hf->GetMatrix().SetElement (1 ,3 ,0);<BR>hf->GetMatrix().SetElement (2 ,0 ,0);<BR>hf->GetMatrix().SetElement (2 ,1 ,0);<BR>hf->GetMatrix().SetElement (2 ,2 ,-1);<BR>hf->GetMatrix().SetElement (2 ,3 ,0);<BR>hf->GetMatrix().SetElement (3 ,0 ,0);<BR>hf->GetMatrix().SetElement (3 ,1 ,0);<BR>hf->GetMatrix().SetElement (3 ,2 ,0);<BR>hf->GetMatrix().SetElement (3 ,3, 1);</P>
<P>vtkTransform *hfsi=vtkTransform::New();<BR> hfsi->Concatenate (hf->GetMatrix());<BR> hfsi->Concatenate (si->GetMatrix());</P>
<P> </P>
<P>thank u in advance<BR></P>
<DIV></DIV>
<DIV><STRONG><FONT face="Verdana, Geneva, Arial, Sans-serif" size=2>Mahmoud El-Banna</FONT></STRONG></DIV>
<DIV></DIV>
<DIV></DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://g.msn.com/1HM300901/156'>Click Here</a><br></html>