/[gzz]/gzz/test/gzz/vob/vobcoorder.test
ViewVC logotype

Diff of /gzz/test/gzz/vob/vobcoorder.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by tjl, Mon Jan 6 11:51:59 2003 UTC revision 1.14 by tjl, Wed Jan 15 14:14:45 2003 UTC
# Line 151  def testInterpolateOutsideHierarchy(): Line 151  def testInterpolateOutsideHierarchy():
151      failUnlessEqual(interp[cs1_1], cs2)      failUnlessEqual(interp[cs1_1], cs2)
152      checkInterp(vs, vs2, interp , .5, cs1_1, [0, 0, 0], [175, 125, 0])      checkInterp(vs, vs2, interp , .5, cs1_1, [0, 0, 0], [175, 125, 0])
153    
154    def testInterpolateInverseOutsideHierarchy():
155        """Test that inverse coordsys of pointwise interpolating coordsys work
156        at least for affines.
157    
158        !!!
159    
160        fail: *
161        """
162    
163        cs1 = c.translate(0, 100, 100, 0)
164        cs1_1 = c.translate(cs1, 0, 0, 0)
165        vs.matcher.add(cs1_1, "FOO")
166        cs1_2 = c.invert(cs1_1)
167        vs.matcher.add(cs1_1, cs1_2, "BAR")
168    
169        vs2 = getvs()
170        c2 = vs2.coords
171        cs2_1 = c2.rotate(0, 90)
172        vs2.matcher.add(cs2_1, "FOO")
173        cs2_2 = c2.invert(cs2_1)
174        vs2.matcher.add(cs2_1, cs2_2, "BAR")
175    
176        interp = vs.matcher.interpList(vs2.matcher, 0)
177        interp[0] = len(interp)
178        failUnlessEqual(interp[cs1_1], cs2_1)
179        failUnlessEqual(interp[cs1_2], cs2_2)
180    
181        checkInterp(vs, vs2, interp , .5, cs1_1, [0, 0, 0, 100, 0, 0], [50, 50, 0, 75, 100, 0])
182        checkInterp(vs, vs2, interp , .5, cs1_2, [50, 50, 0, 75, 100, 0], [0, 0, 0, 100, 0, 0])
183        
184    
185  def testInterpolateKeymap():  def testInterpolateKeymap():
186      """Test that vobs get according to keymap.      """Test that vobs get according to keymap.
187    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26