/[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.19 by jvk, Fri Jun 27 12:06:06 2003 UTC revision 1.20 by jvk, Sun Jun 29 11:22:07 2003 UTC
# Line 43  class Scene: Line 43  class Scene:
43      def scene(self, vs):      def scene(self, vs):
44          vs.put( background((.5,1,.2)))          vs.put( background((.5,1,.2)))
45    
         #angle = vs.orthoCS(0, "Ang", 0, self.angle, 0, 0, 0);  
   
         #thick = vs.orthoCS(0, "Thi", 0, self.thick, 0, 0, 0);  
         #thick = vs.orthoCS(0, "Thi", 0, 100*(self.thick / (math.hypot(self.x - 500, self.y - 500)+50)), 0, 0, 0);  
   
         thick = vs.coords.rational1D22(0, self.thick, 0, 0,  1, 1, 0);  
         angle = vs.coords.rational1D22(0, self.angle, 0, 0,  1, 0, 0);  
         vs.matcher.add(thick, "Thi")  
         vs.matcher.add(angle, "Ang")  
   
46          a = vs.orthoBoxCS(0, "A", 0, 100, 100, 1, 1, self.size, self.size);          a = vs.orthoBoxCS(0, "A", 0, 100, 100, 1, 1, self.size, self.size);
47          b = vs.orthoBoxCS(0, "B", 200, self.x, self.y, 1, 1, self.size, self.size);          b = vs.orthoBoxCS(0, "B", 200, self.x, self.y, 1, 1, self.size, self.size);
48          c = vs.orthoBoxCS(0, "C", 400, 200, 500, 1, 1, self.size, self.size);          c = vs.orthoBoxCS(0, "C", 400, 200, 500, 1, 1, self.size, self.size);
49          d = vs.orthoBoxCS(0, "D", 600, 100, 300, 1, 1, self.size, self.size);          d = vs.orthoBoxCS(0, "D", 600, 100, 300, 1, 1, self.size, self.size);
50          e = vs.orthoBoxCS(0, "E", 800, 500, 500, 1, 1, self.size, self.size);          e = vs.orthoBoxCS(0, "E", 800, 500, 500, 1, 1, self.size, self.size);
51    
52          def pc(conns):          def pc(conns, cs):
53              # vs.put(conns, [a,  b, c, d])              # vs.put(conns, [a,  b, c, d])
54              # vs.put(conns, [b,  a, d, e]);              # vs.put(conns, [b,  a, d, e]);
55              # vs.put(conns, [c,  a]);              # vs.put(conns, [c,  a]);
56              # vs.put(conns, [d,  a, b]);              # vs.put(conns, [d,  a, b]);
57    
58              vs.put(conns, [thick, angle, b,  e]);              vs.put(conns, cs + [b,  e]);
59              vs.put(conns, [thick, angle, c,  e]);              vs.put(conns, cs + [c,  e]);
60    
61  #           vs.put(GLRen.createDebugSwitch("Fillets", 1));  #           vs.put(GLRen.createDebugSwitch("Fillets", 1));
62  #           vs.put(GLRen.createDebugSwitch("VFillets", 1));  #           vs.put(GLRen.createDebugSwitch("VFillets", 1));
63              #vs.put(GLRen.createDebugSwitch("Quadrics", 1));              #vs.put(GLRen.createDebugSwitch("Quadrics", 1));
64              vs.put(conns, [thick, angle, e,  b, c]);              vs.put(conns, cs + [e, b, c]);
65  #           vs.put(GLRen.createDebugSwitch("Fillets", 0));  #           vs.put(GLRen.createDebugSwitch("Fillets", 0));
66  #           vs.put(GLRen.createDebugSwitch("VFillets", 0));  #           vs.put(GLRen.createDebugSwitch("VFillets", 0));
67              #vs.put(GLRen.createDebugSwitch("Quadrics", 0));              #vs.put(GLRen.createDebugSwitch("Quadrics", 0));

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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