/[libvob]/libvob/test/vob/gl/glvobcoorder.test
ViewVC logotype

Diff of /libvob/test/vob/gl/glvobcoorder.test

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

revision 1.13 by tjl, Thu Apr 17 05:21:40 2003 UTC revision 1.14 by tjl, Fri Apr 25 17:16:45 2003 UTC
# Line 62  def testTransform(): Line 62  def testTransform():
62      # Clockwise rotation      # Clockwise rotation
63      c.setRotateParams(r, 90)      c.setRotateParams(r, 90)
64      checkTrans(vs, r, [0, 0, 0, 0, 50, 0], [100, 100, 0, 50, 100, 0])      checkTrans(vs, r, [0, 0, 0, 0, 50, 0], [100, 100, 0, 50, 100, 0])
65    
66  def checkInverse(c, cs):  def checkInverse(c, cs):
67      # unit cube      # unit cube
68      src = array([      list = [
69          0, 0, 0,          0, 0, 0,
70          0, 0, 1,          0, 0, 1,
71          0, 1, 0,          0, 1, 0,
# Line 82  def checkInverse(c, cs): Line 83  def checkInverse(c, cs):
83          -100, 0, -100,          -100, 0, -100,
84          -100, -100, 0,          -100, -100, 0,
85          -100, -100, -100,          -100, -100, -100,
86          ], 'f')          ]
87        src = array(list , 'f')
88    
89        checkTransEq(vs, cs, list)
90    
91      dst = zeros(len(src), 'f')      dst = zeros(len(src), 'f')
92      src2 = zeros(len(src), 'f')      src2 = zeros(len(src), 'f')
# Line 121  def checkInverse(c, cs): Line 125  def checkInverse(c, cs):
125    
126  def testInverses():  def testInverses():
127      for i in range(0,5):      for i in range(0,5):
         c = getvs().coords  
128    
129          cs_ortho = c.ortho(0, 2, 3.5, 9.1, 1.2, 3.9)          cs_ortho = c.ortho(0, 2, 3.5, 9.1, 1.2, 3.9)
130          cs_ortho2 = c.ortho(cs_ortho, -1.92, 4.1, 2.951, 2.52, 291)          cs_ortho2 = c.ortho(cs_ortho, -1.92, 4.1, 2.951, 2.52, 291)
# Line 317  def testBox(): Line 320  def testBox():
320      failUnlessEqual(wh[1], 7);      failUnlessEqual(wh[1], 7);
321      cs3 = vs.coords.nadirUnitSq(cs1, cs2)      cs3 = vs.coords.nadirUnitSq(cs1, cs2)
322    
323        checkTransEq(vs, cs1, [0,0,0, 1,1,1, 100,100,100])
324        checkTransEq(vs, cs2, [0,0,0, 1,1,1, 100,100,100])
325        checkTransEq(vs, cs3, [0,0,0, 1,1,1, 100,100,100])
326    
327    
328      wh = zeros(2, 'f')      wh = zeros(2, 'f')
329      vs.coords.getSqSize(cs3, wh)      vs.coords.getSqSize(cs3, wh)

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