gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz ./Makefile ./TODO test/gzz/gfx/gl/glvobcoor...


From: Tuomas J. Lukka
Subject: [Gzz-commits] gzz ./Makefile ./TODO test/gzz/gfx/gl/glvobcoor...
Date: Tue, 01 Oct 2002 02:42:55 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Tuomas J. Lukka <address@hidden>        02/10/01 02:42:55

Modified files:
        .              : Makefile TODO 
        test/gzz/gfx/gl: glvobcoorder.test 

Log message:
        Failing transform test

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/Makefile.diff?tr1=1.173&tr2=1.174&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/TODO.diff?tr1=1.205&tr2=1.206&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/gfx/gl/glvobcoorder.test.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gzz/Makefile
diff -c gzz/Makefile:1.173 gzz/Makefile:1.174
*** gzz/Makefile:1.173  Mon Sep 30 18:20:28 2002
--- gzz/Makefile        Tue Oct  1 02:42:55 2002
***************
*** 371,377 ****
  endif
  
  batchtest:
!       $(JYTHON) test/test.py
  runtest:  # Use: make runtest TEST=gzz/vob/vobmatcher, to run a single test.
        $(GLLIB) $(JYTHON) test/testutil.py test/$(TEST).test
  run:
--- 371,377 ----
  endif
  
  batchtest:
!       $(GLLIB) $(JYTHON) test/test.py
  runtest:  # Use: make runtest TEST=gzz/vob/vobmatcher, to run a single test.
        $(GLLIB) $(JYTHON) test/testutil.py test/$(TEST).test
  run:
Index: gzz/TODO
diff -c gzz/TODO:1.205 gzz/TODO:1.206
*** gzz/TODO:1.205      Tue Oct  1 02:24:42 2002
--- gzz/TODO    Tue Oct  1 02:42:55 2002
***************
*** 25,31 ****
            - check that things generally work
  
  
! 0.8alpha3: Crucial demos for continued funding [ABSOLUTE Deadline: 4.10]
  ( unlike the other releases, the things here are in priority order )
      benja:
        - *1. help Tjl by explaining how linebroken text views are
--- 25,31 ----
            - check that things generally work
  
  
! 0.8alpha3: Crucial demos for continued funding [ABSOLUTE Deadline: 4.10, 
10:00]
  ( unlike the other releases, the things here are in priority order )
      benja:
        - *1. help Tjl by explaining how linebroken text views are
***************
*** 153,159 ****
      tuukkah:
        - move Modules/ to basalt (what about Java/ and C++/) (Tjl: remove them)
        - genimages lazily: pass existing images. Must check that the
!         file is not zero-length though.
      tjl:
        - javadoc for gzz.vob.Vob* interfaces
        - clarify Binder javadoc (Benja wasn't aware that the idea is
--- 153,161 ----
      tuukkah:
        - move Modules/ to basalt (what about Java/ and C++/) (Tjl: remove them)
        - genimages lazily: pass existing images. Must check that the
!         file is not zero-length though. [ done? ]
!       - clean, rename and document Makefile targets (coordinate with mudyc:
!         do we want to use something else instead of make?)
      tjl:
        - javadoc for gzz.vob.Vob* interfaces
        - clarify Binder javadoc (Benja wasn't aware that the idea is
Index: gzz/test/gzz/gfx/gl/glvobcoorder.test
diff -c gzz/test/gzz/gfx/gl/glvobcoorder.test:1.1 
gzz/test/gzz/gfx/gl/glvobcoorder.test:1.2
*** gzz/test/gzz/gfx/gl/glvobcoorder.test:1.1   Mon Sep 30 18:20:28 2002
--- gzz/test/gzz/gfx/gl/glvobcoorder.test       Tue Oct  1 02:42:55 2002
***************
*** 17,19 ****
--- 17,59 ----
      failUnlessEqual([x for x in dst], [10, 15, 5])
      
  
+ def checkInverse(c, cs):
+     # unit cube
+     src = array([
+       0, 0, 0,
+       0, 0, 1,
+       0, 1, 0,
+       0, 1, 1,
+       1, 0, 0,
+       1, 0, 1,
+       1, 1, 0,
+       1, 1, 1,
+ 
+       0, 0, 0,
+       0, 0, -100,
+       0, -100, 0,
+       0, -100, -100,
+       -100, 0, 0,
+       -100, 0, -100,
+       -100, -100, 0,
+       -100, -100, -100,
+       ], 'f')
+ 
+     dst = zeros(len(src), 'f')
+     src2 = zeros(len(src), 'f')
+ 
+     c.transformPoints3(cs, src, dst)
+     c.inverseTransformPoints3(cs, dst, src2)
+ 
+     for i in range(0,len(src)):
+       failIf( abs(src[i] - src2[i])/(abs(src[i])+1) > 0.01, msg=str((src, 
dst, src2, i, src[i], src2[i])) )
+ 
+ def testInverses():
+     c = GLVobCoorder()
+ 
+     cs_ortho = c.coordsys(0, 2, 3.5, 9.1, 1.2, 3.9)
+     cs_ortho2 = c.coordsys(cs_ortho, -1.92, 4.1, 2.951, 2.52, 291)
+ 
+     checkInverse(c, cs_ortho)
+     checkInverse(c, cs_ortho2)
+ 




reply via email to

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