<br>
Looks like I can answer my own question...<br>
if I add a call to tr-&gt;MultiplyPoint before the InternalMultiply Point, tr is updated and I get the right result:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tr-&gt;MultiplyPoint ( pi, po );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf (&quot;Pt: %f %f %f %f\n&quot;, po[0], po[1], po[2], po[3]);<br>
<br>
doh... sorry for cluttering the list :/<br>
<br>
<br>
<br><br><div><span class="gmail_quote">On 1/8/06, <b class="gmail_sendername">Greg Pintilie</b> &lt;<a href="mailto:gregvtk@gmail.com">gregvtk@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Say I have a vtkMatrix4x4 M, and I want to make a vtkTransform object have the same transform:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; vtkTransform *tr = vtkTransform::New();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tr-&gt;SetMatrix ( M );<br>
<br>
Then I want to use this transform in a vtkBoxWidget:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; boxWidget-&gt;SetTransform ( tr );<br>
<br>
<br>
The thing is, the widget doesn't have the same position and orientation as my original transform!<br>
Looking at the code, the widget uses the function
tr-&gt;InternalTransformPoint, and when I checked it out using the
following code:<br>
<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double pi[4] = {1, 1, 1, 1};<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; double *po = M-&gt;MultiplyDoublePoint ( pi );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf (&quot;Pt: %f %f %f %f\n&quot;, po[0], po[1], po[2], po[3]);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; tr-&gt;InternalTransformPoint ( pi, po );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf (&quot;Pt: %f %f %f\n&quot;, po[0], po[1], po[2]);<br>
<br>
I get the following output:<br>
Pt: 94.408877 -29.992743 2.359148 1.000000<br>
Pt: 1.000000 1.000000 1.000000<br>
<br>
So tr and M don't match. How do I make tr match M?<br>
<br>
Thanks for any help.<br><span class="sg">
<br>
Greg<br>
<br>
<br>
<br>


</span></blockquote></div><br>