[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libpaper texcoords.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/libpaper texcoords.py |
Date: |
Tue, 03 Sep 2002 09:06:00 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/03 09:06:00
Modified files:
gfx/libpaper : texcoords.py
Log message:
Try to improve texgens
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libpaper/texcoords.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: gzz/gfx/libpaper/texcoords.py
diff -c gzz/gfx/libpaper/texcoords.py:1.7 gzz/gfx/libpaper/texcoords.py:1.8
*** gzz/gfx/libpaper/texcoords.py:1.7 Mon Sep 2 08:56:56 2002
--- gzz/gfx/libpaper/texcoords.py Tue Sep 3 09:06:00 2002
***************
*** 61,67 ****
vecs = None,
angle_stddev = .1,
avg_length_mean = .5,
! avg_length_stddev = .25,
lendiff_mean = 0,
lendiff_stddev = .1):
--- 61,67 ----
vecs = None,
angle_stddev = .1,
avg_length_mean = .5,
! avg_length_stddev = .10,
lendiff_mean = 0,
lendiff_stddev = .1):
***************
*** 144,150 ****
"""
def chooseInts(rnd):
! a,b,c,d = [int(rnd.nextGaussian()) for i in range(0,4)]
det = a*d-b*c
if det == 0: return chooseInts(rnd)
return (a,b,c,d)
--- 144,150 ----
"""
def chooseInts(rnd):
! a,b,c,d = [int(0.5*rnd.nextGaussian()) for i in range(0,4)]
det = a*d-b*c
if det == 0: return chooseInts(rnd)
return (a,b,c,d)
- [Gzz-commits] gzz/gfx/libpaper texcoords.py,
Tuomas J. Lukka <=