/[libvob]/libvob/vob/demo/multifil/multifil.py
ViewVC logotype

Diff of /libvob/vob/demo/multifil/multifil.py

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

revision 1.13 by tjl, Wed Jun 11 17:49:03 2003 UTC revision 1.14 by jvk, Thu Jun 12 13:29:57 2003 UTC
# Line 64  class Scene: Line 64  class Scene:
64          if self.lines:          if self.lines:
65              vs.put(getDListNocoords("PolygonMode FRONT_AND_BACK LINE"))              vs.put(getDListNocoords("PolygonMode FRONT_AND_BACK LINE"))
66    
67          angle = vs.orthoCS(0, "Ang", 0, self.angle, 0, 0, 0);          #angle = vs.orthoCS(0, "Ang", 0, self.angle, 0, 0, 0);
68    
69          thick = vs.orthoCS(0, "Thi", 0, self.thick, 0, 0, 0);          #thick = vs.orthoCS(0, "Thi", 0, self.thick, 0, 0, 0);
70            #thick = vs.orthoCS(0, "Thi", 0, 100*(self.thick / (math.hypot(self.x - 500, self.y - 500)+50)), 0, 0, 0);
71    
72            thick = vs.coords.rational1D22(0, self.thick, 0, 0,  0, 1, 0);
73            angle = vs.coords.rational1D22(0, self.angle, 0, 0,  1, 0, 0);
74            vs.matcher.add(thick, "Thi")
75            vs.matcher.add(angle, "Ang")
76    
77          border = 2          border = 2
78          conns = GLRen.createSortedConnections(          conns = GLRen.createSortedConnections(
# Line 95  class Scene: Line 101  class Scene:
101              # vs.put(conns, [d,  a, b]);              # vs.put(conns, [d,  a, b]);
102    
103              vs.put(conns, [thick, angle, b,  e]);              vs.put(conns, [thick, angle, b,  e]);
104                vs.put(conns, [thick, angle, c,  e]);
105    
106  #           vs.put(GLRen.createDebugSwitch("Fillets", 1));  #           vs.put(GLRen.createDebugSwitch("Fillets", 1));
107  #           vs.put(GLRen.createDebugSwitch("VFillets", 1));  #           vs.put(GLRen.createDebugSwitch("VFillets", 1));
108              #vs.put(GLRen.createDebugSwitch("Quadrics", 1));              #vs.put(GLRen.createDebugSwitch("Quadrics", 1));
109              vs.put(conns, [thick, angle, e,  b]);              vs.put(conns, [thick, angle, e,  b, c]);
110  #           vs.put(GLRen.createDebugSwitch("Fillets", 0));  #           vs.put(GLRen.createDebugSwitch("Fillets", 0));
111  #           vs.put(GLRen.createDebugSwitch("VFillets", 0));  #           vs.put(GLRen.createDebugSwitch("VFillets", 0));
112              #vs.put(GLRen.createDebugSwitch("Quadrics", 0));              #vs.put(GLRen.createDebugSwitch("Quadrics", 0));

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