gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/lava/test/gzz/loom WheelView.test


From: Asko Soukka
Subject: [Gzz-commits] gzz/lava/test/gzz/loom WheelView.test
Date: Thu, 27 Feb 2003 12:05:25 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Asko Soukka <address@hidden>    03/02/27 12:05:25

Modified files:
        lava/test/gzz/loom: WheelView.test 

Log message:
        depthtest

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/test/gzz/loom/WheelView.test.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: gzz/lava/test/gzz/loom/WheelView.test
diff -u gzz/lava/test/gzz/loom/WheelView.test:1.6 
gzz/lava/test/gzz/loom/WheelView.test:1.7
--- gzz/lava/test/gzz/loom/WheelView.test:1.6   Thu Feb 27 05:45:38 2003
+++ gzz/lava/test/gzz/loom/WheelView.test       Thu Feb 27 12:05:25 2003
@@ -69,6 +69,11 @@
     elif x < 0 and y == 0: return math.pi
     elif x < 0 and y > 0: return math.pi/2 + math.atan(y/-x)
 
+def getZ(vs, cs):
+    tmp = jarray.zeros(3, 'f')
+    vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp)
+    return (tmp[2])
+
 def testWheel():
     r.addProperty(p, s)
     r.addProperty(p, t)
@@ -89,16 +94,18 @@
         [vs.coords.transformPoint(cs, 0, 0, None)
          for cs in [cs_r, cs_s, cs_t, cs_u, cs_v, cs_w]]
 
+    prz, psz, ptz, puz, pvz, pwz = \
+        [getZ(vs, cs) for cs in [cs_r, cs_s, cs_t, cs_u, cs_v, cs_w]]  
+
     # Check that selected nodes are drawn on same level
 
     assert pw.y == pr.y == ps.y
-    # XXX assert pw.z == pr.z == ps.z
+    assert pwz == prz == psz
 
     # Check that the positive side of the wheel seem to turn right
-
     assert pt.y < ps.y < pv.y
     assert pt.x < ps.x > pv.x
-    # XXX assert pt.z > ps.z < pv.z < pu.z
+    assert ptz > psz < pvz < puz
        
 
     # Check that all nodes have approximately the same distance




reply via email to

[Prev in Thread] Current Thread [Next in Thread]