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

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

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

revision 1.22 by jvk, Fri Jun 27 12:09:12 2003 UTC revision 1.23 by jvk, Sun Jun 29 11:22:07 2003 UTC
# Line 61  class Scene: Line 61  class Scene:
61          vs.matcher.add(cs, "Rot")          vs.matcher.add(cs, "Rot")
62                    
63    
         thick = vs.coords.rational1D22(0, self.thick, 0, 0,  1, 1, 0);  
         angle = vs.coords.rational1D22(0, self.angle, 0, 0,  1, 0, 0);  
         #XXX: angle scaling test  
         #angle = vs.coords.rational1D22(0, 1, 0, .15, 0, 1, 0);  
         vs.matcher.add(thick, "Thi")  
         vs.matcher.add(angle, "Ang")  
   
   
64          nodes = [ {          nodes = [ {
65              "cs" : vs.orthoBoxCS(cs, "node%s" % i,              "cs" : vs.orthoBoxCS(cs, "node%s" % i,
66                                   (rng.random() - .5) * box,                                   (rng.random() - .5) * box,
# Line 90  class Scene: Line 82  class Scene:
82              b["conns"].append(node["cs"])              b["conns"].append(node["cs"])
83    
84                    
85          def pc(conns):          def pc(conns, cs):
86              for node in nodes:              for node in nodes:
87                  if node["conns"]:                  if node["conns"]:
88                      vs.put(conns, [thick, angle, node["cs"]] + node["conns"])                      vs.put(conns, cs + [node["cs"]] + node["conns"])
89    
90          light3d.drawFillets(self, vs, pc)          light3d.drawFillets(self, vs, pc)

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

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