/[gzz]/gzz/gfx/libpaper/texcoords.py
ViewVC logotype

Diff of /gzz/gfx/libpaper/texcoords.py

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

revision 1.4 by tjl, Sat Aug 31 06:00:29 2002 UTC revision 1.5 by tjl, Sat Aug 31 06:02:00 2002 UTC
# Line 95  class TexCoords: Line 95  class TexCoords:
95          # along one of the coordinate axes. Here we also get to check          # along one of the coordinate axes. Here we also get to check
96          # whether all components are zero.          # whether all components are zero.
97          if v[0] != 0:          if v[0] != 0:
98              vec3 = (- v[4] / v[0], 0, 0)              vec3 = (- v[3] / v[0], 0, 0)
99          elif v[1] != 0:          elif v[1] != 0:
100              vec3 = (0, - v[4] / v[1], 0)              vec3 = (0, - v[3] / v[1], 0)
101          elif v[2] != 0:          elif v[2] != 0:
102              vec3 = (0, 0, - v[4] / v[2])              vec3 = (0, 0, - v[3] / v[2])
103          else:          else:
104              assert 0, "Vec was all zero!"              assert 0, "Vec was all zero!"
105    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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