summaryrefslogtreecommitdiffstats
path: root/Demo/sgi/gl
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-02-25 11:46:50 (GMT)
committerGuido van Rossum <guido@python.org>2000-02-25 11:46:50 (GMT)
commitb4624b94a86cf792dec99a05b13ebe7d774ee032 (patch)
tree610d857c630d0d3a926ad473005234d0461fbfd4 /Demo/sgi/gl
parent3af7b050a33b4d22260c01ce6b6700e1159edce0 (diff)
downloadcpython-b4624b94a86cf792dec99a05b13ebe7d774ee032.zip
cpython-b4624b94a86cf792dec99a05b13ebe7d774ee032.tar.gz
cpython-b4624b94a86cf792dec99a05b13ebe7d774ee032.tar.bz2
Fix a couple dozen broken ci.append(x, y, z) calls, spotted by Tim.
Diffstat (limited to 'Demo/sgi/gl')
-rwxr-xr-xDemo/sgi/gl/nurbs.py50
1 files changed, 25 insertions, 25 deletions
diff --git a/Demo/sgi/gl/nurbs.py b/Demo/sgi/gl/nurbs.py
index c33cb4e..6efef48 100755
--- a/Demo/sgi/gl/nurbs.py
+++ b/Demo/sgi/gl/nurbs.py
@@ -23,31 +23,31 @@ def make_ctlpoints():
c = []
#
ci = []
- ci.append(-2.5, -3.7, 1.0)
- ci.append(-1.5, -3.7, 3.0)
- ci.append(1.5, -3.7, -2.5)
- ci.append(2.5, -3.7, -0.75)
+ ci.append((-2.5, -3.7, 1.0))
+ ci.append((-1.5, -3.7, 3.0))
+ ci.append((1.5, -3.7, -2.5))
+ ci.append((2.5, -3.7, -0.75))
c.append(ci)
#
ci = []
- ci.append(-2.5, -2.0, 3.0)
- ci.append(-1.5, -2.0, 4.0)
- ci.append(1.5, -2.0, -3.0)
- ci.append(2.5, -2.0, 0.0)
+ ci.append((-2.5, -2.0, 3.0))
+ ci.append((-1.5, -2.0, 4.0))
+ ci.append((1.5, -2.0, -3.0))
+ ci.append((2.5, -2.0, 0.0))
c.append(ci)
#
ci = []
- ci.append(-2.5, 2.0, 1.0)
- ci.append(-1.5, 2.0, 0.0)
- ci.append(1.5, 2.0, -1.0)
- ci.append(2.5, 2.0, 2.0)
+ ci.append((-2.5, 2.0, 1.0))
+ ci.append((-1.5, 2.0, 0.0))
+ ci.append((1.5, 2.0, -1.0))
+ ci.append((2.5, 2.0, 2.0))
c.append(ci)
#
ci = []
- ci.append(-2.5, 2.7, 1.25)
- ci.append(-1.5, 2.7, 0.1)
- ci.append(1.5, 2.7, -0.6)
- ci.append(2.5, 2.7, 0.2)
+ ci.append((-2.5, 2.7, 1.25))
+ ci.append((-1.5, 2.7, 0.1))
+ ci.append((1.5, 2.7, -0.6))
+ ci.append((2.5, 2.7, 0.2))
c.append(ci)
#
return c
@@ -58,15 +58,15 @@ trimknots = [0., 0., 0., 1., 1., 2., 2., 3., 3., 4., 4., 4.]
def make_trimpoints():
c = []
- c.append(1.0, 0.0, 1.0)
- c.append(1.0, 1.0, 1.0)
- c.append(0.0, 2.0, 2.0)
- c.append(-1.0, 1.0, 1.0)
- c.append(-1.0, 0.0, 1.0)
- c.append(-1.0, -1.0, 1.0)
- c.append(0.0, -2.0, 2.0)
- c.append(1.0, -1.0, 1.0)
- c.append(1.0, 0.0, 1.0)
+ c.append((1.0, 0.0, 1.0))
+ c.append((1.0, 1.0, 1.0))
+ c.append((0.0, 2.0, 2.0))
+ c.append((-1.0, 1.0, 1.0))
+ c.append((-1.0, 0.0, 1.0))
+ c.append((-1.0, -1.0, 1.0))
+ c.append((0.0, -2.0, 2.0))
+ c.append((1.0, -1.0, 1.0) )
+ c.append((1.0, 0.0, 1.0))
return c
trimpoints = make_trimpoints()