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

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

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

revision 1.13 by jvk, Fri Aug 23 15:11:09 2002 UTC revision 1.14 by tjl, Sat Aug 31 05:26:58 2002 UTC
# Line 554  class PaperMill: Line 554  class PaperMill:
554                                            
555                  elif ttyp[i] == "C":                  elif ttyp[i] == "C":
556                      data = [ 0, 0, 0, sca2*rnd.nextGaussian(),                      data = [ 0, 0, 0, sca2*rnd.nextGaussian(),
557                                 0, 0, 0, sca2*rnd.nextGaussian(),
558                               0, 0, 0, sca2*rnd.nextGaussian() ]                               0, 0, 0, sca2*rnd.nextGaussian() ]
559                  else:                  else:
560                      assert 0                      assert 0
561                    if len(data) < 12:
562                        for i in (0,0,0,1): data.append(i)
563                  if emboss and ttyp[i] == "A":                  if emboss and ttyp[i] == "A":
564                      if eps > 0:                      if eps > 0:
565                          prev = data                          prev = data
# Line 573  class PaperMill: Line 576  class PaperMill:
576  def invTexMat(mat):  def invTexMat(mat):
577      m = 1.0 / (mat[0] * mat[5] - mat[1] * mat[4])      m = 1.0 / (mat[0] * mat[5] - mat[1] * mat[4])
578      return [ m*mat[5], m*-mat[1], mat[2], mat[3],      return [ m*mat[5], m*-mat[1], mat[2], mat[3],
579               m*-mat[4], m*mat[0], mat[6], mat[7] ]               m*-mat[4], m*mat[0], mat[6], mat[7]]
580    
581  def getTexMat(rnd):  def getTexMat(rnd):
582      #sca1 = 10      #sca1 = 10
# Line 594  def getTexMat(rnd): Line 597  def getTexMat(rnd):
597            
598      return invTexMat([ r0 * math.cos(a0), r1 * math.cos(a1), 0, rnd.nextDouble(),      return invTexMat([ r0 * math.cos(a0), r1 * math.cos(a1), 0, rnd.nextDouble(),
599                         r0 * math.sin(a0), r1 * math.sin(a1), 0, rnd.nextDouble() ])                         r0 * math.sin(a0), r1 * math.sin(a1), 0, rnd.nextDouble() ])
600        

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