diff -r 4fedf7290929 -r 7c3f38dff082 demos/lworeader.py --- a/demos/lworeader.py Sat Apr 19 18:00:27 2008 +0200 +++ b/demos/lworeader.py Sun Apr 20 16:48:24 2008 +0200 @@ -3,6 +3,7 @@ from math import * from struct import * from raytracer import Triangle, NormalVertex, Material +from vector import dot def read_int4(f): return unpack('>i', f.read(4))[0] @@ -153,12 +154,6 @@ (ID,size) = read_chunk(f) return (points, faces, tags, surfaces) -def dot(a,b): - sum = 0 - for i in range(min(len(a),len(b))): - sum += a[i]*b[i] - return sum - def LoadLightwaveLwoFile(rt, filename, scale=(1,1,1), trans=(0,0,0)): if (type(scale) == float or type(scale) == int): scale = (scale,)*3