<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier, monaco, monospace, sans-serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV>Hey,</DIV>
<DIV> </DIV>
<DIV>I'm trying to use the vtkTransformInterpolator in python, but when I try to add transforms without rotation the interpolator returns transforms with messed up rotations </DIV>
<DIV> </DIV>
<DIV>ex.</DIV>
<DIV><FONT face="courier, monaco, monospace, sans-serif">C:\Program Files\Windows Resource Kits\Tools>python<BR>Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32<BR>Type "help", "copyright", "credits" or "license" for more information.<BR>>>> from vtk import*<BR>>>> t=vtkTransformInterpolator()<BR>>>> transform=vtkTransform()<BR>>>> transform.Translate(10,0,0)<BR>>>> t.AddTransform(0, vtkTransform())<BR>>>> t.AddTransform(10, transform)<BR>>>> tOut = vtkTransform()<BR>>>> t.InterpolateTransform(5, tOut)<BR>>>> print tOut<BR>vtkTransform (00A4FB18)<BR> Debug: Off<BR> Modified Time: 526<BR> Reference Count: 2<BR> Registered Events: (none)<BR> Inverse: (00000000)<BR> Matrix: (012611A0)<BR> Debug: Off<BR> Modified Time: 527<BR> Reference Count: 1<BR> Registered
Events: (none)<BR> Elements:<BR> -1.#IND -1.#IND -1.#IND 0.5<BR> -1.#IND -1.#IND -1.#IND 0<BR> -1.#IND -1.#IND -1.#IND 0<BR> -1.#IND -1.#IND -1.#IND 1<BR> Input: (00000000)<BR> InverseFlag: 0<BR> NumberOfConcatenatedTransforms: 1<BR> 0: vtkSimpleTransform at 0126FC18<BR> DoublePoint: ( 0, 0, 0, 0)<BR> Point: ( 0, 0, 0, 0)</FONT></DIV>
<DIV> </DIV>
<DIV>In this example the translation is also off. </DIV>
<DIV> </DIV>
<DIV>As well, when I try to set a small rotation at the start to avoid this problem, there are still some combinations of rotations and translations that return matrices similar to the one in the example I posted.</DIV>
<DIV>Any ideas as to what's going on with the interpolator?</DIV>
<DIV>Thanks!</DIV>
<DIV>-Arwen</DIV></DIV>
<DIV></DIV></div><br>
        
                <hr size=1>Make free worldwide PC-to-PC calls. Try the new <a href="http://ca.messenger.yahoo.com/"><b>Yahoo! Canada Messenger with Voice</b></a></body></html>