Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/test_writeDiderot.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/test_writeDiderot.py

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

revision 4455, Wed Aug 24 23:39:30 2016 UTC revision 4456, Thu Aug 25 04:03:27 2016 UTC
# Line 65  Line 65 
65      otype = fty.get_tensorType(type)      otype = fty.get_tensorType(type)
66      v2 =  " ["+s+","+s+"]"      v2 =  " ["+s+","+s+"]"
67      v3 = " ["+s+","+s+","+s+"]"      v3 = " ["+s+","+s+","+s+"]"
68        v4 = " ["+s+","+s+","+s+","+s+"]"
69      m22 = "["+v2+","+v2+"]"      m22 = "["+v2+","+v2+"]"
70      m33 = "["+v3+","+v3+","+v3+"]"      m33 = "["+v3+","+v3+","+v3+"]"
71        m44 = "["+v4+","+v4+","+v4+","+v4+"]"
72      m23 = "["+v3+","+v3+"]"      m23 = "["+v3+","+v3+"]"
73      m32 = "["+v2+","+v2+","+v2+"]"      m32 = "["+v2+","+v2+","+v2+"]"
74      m222 = "["+m22+","+m22+"]"      m222 = "["+m22+","+m22+"]"
# Line 79  Line 81 
81          return v2          return v2
82      elif(ty_vec3T==otype):      elif(ty_vec3T==otype):
83          return v3          return v3
84        elif(ty_vec4T==otype):
85            return v4
86      elif(ty_mat2x2T==otype):      elif(ty_mat2x2T==otype):
87          return  m22          return  m22
88      elif(ty_mat3x3T==otype):      elif(ty_mat3x3T==otype):
89          return m33          return m33
90        elif(ty_mat4x4T==otype):
91            return m44
92      elif(ty_mat2x3T==otype):      elif(ty_mat2x3T==otype):
93          return m23          return m23
94      elif(ty_mat3x2T==otype):      elif(ty_mat3x2T==otype):

Legend:
Removed from v.4455  
changed lines
  Added in v.4456

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0