From: Mike C. Fletcher <mcfletch@vr...>  20090401 02:40:21

Ian Mallett wrote: > Hello, > > I have a VBO which should make a square grid: > > #Numeric is "import numpy as Numeric" > class glLibCausticGrid: > def __init__(self,size): > self.size = size > self.size_squared = size*size > threedimensionalgrid = > Numeric.dstack(Numeric.mgrid[0:size,0:size,0:1])/float(size1) Wouldn't this have created a double, rather than a float dataset, does on my machine: >>> n = numpy.dstack( numpy.mgrid[0:255,0:255,0:1])/float(254) >>> n.dtype dtype('float64') HTH, Mike  ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com 