gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/vob/demo/multifil randgraph.py


From: Janne V. Kujala
Subject: [Gzz-commits] libvob/vob/demo/multifil randgraph.py
Date: Wed, 04 Jun 2003 05:44:13 -0400

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Janne V. Kujala <address@hidden>        03/06/04 05:44:13

Modified files:
        vob/demo/multifil: randgraph.py 

Log message:
        adjustable seed

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/vob/demo/multifil/randgraph.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text

Patches:
Index: libvob/vob/demo/multifil/randgraph.py
diff -u libvob/vob/demo/multifil/randgraph.py:1.7 
libvob/vob/demo/multifil/randgraph.py:1.8
--- libvob/vob/demo/multifil/randgraph.py:1.7   Fri May 30 10:47:09 2003
+++ libvob/vob/demo/multifil/randgraph.py       Wed Jun  4 05:44:13 2003
@@ -24,6 +24,7 @@
            SlideLin("N", 21, 3, "N", "-", "+"),
            SlideLin("ang", 21, 3, "Rotation angle", "Prior", "Next"),
            Toggle("fillets", 1, "Toggle filleting", "f"),
+           SlideLin("seed", 42, 1, "seed number", "S", "s"),
        )
     def scene(self, vs):
        putnoc(vs, background((.5,1,.2)))
@@ -47,7 +48,7 @@
 
        size = 10
 
-        rng = Random(42)
+        rng = Random(self.seed)
         N2 = 2*self.N/3
 
         box = 800




reply via email to

[Prev in Thread] Current Thread [Next in Thread]