def buildPointList0(self): """ This is just to test memory and speed """ n1, n2, n3 = 256, 256, 256 zdata = numpy.arange(n1*n2*n3).astype(numpy.float32) zdata.shape= -1, 1 (image,size,minmax)= spslut.transform(zdata, (1,0), (spslut.LINEAR,3.0), "RGBX", spslut.TEMP, 1, (0, 1), (0, 255),1) image.shape = -1, 4 image[:,3] = 255 #self.vertexColors = image.astype(numpy.float32) x = numpy.arange(n1).astype(numpy.float32) y = numpy.arange(n2).astype(numpy.float32) z = numpy.arange(n3).astype(numpy.float32) #Object3DCTools.draw3DGridQuads(x, y, y) #Object3DCTools.draw3DGridLines(x, y, z, image) Object3DCTools.draw3DGridPoints(x, y, z, image) self.zdata = zdata
def buildPointList0(self): """ This is just to test memory and speed """ n1, n2, n3 = 256, 256, 256 zdata = numpy.arange(n1*n2*n3).astype(numpy.float32) zdata.shape= -1, 1 (image,size,minmax)= spslut.transform(zdata, (1,0), (spslut.LINEAR,3.0), "RGBX", spslut.TEMP, 1, (0, 1), (0, 255),1) image.shape = -1, 4 image[:,3] = 255 #self.vertexColors = image.astype(numpy.float32) x = numpy.arange(n1).astype(numpy.float32) y = numpy.arange(n2).astype(numpy.float32) z = numpy.arange(n3).astype(numpy.float32) #Object3DCTools.draw3DGridQuads(x, y, y) #Object3DCTools.draw3DGridLines(x, y, z, image) Object3DCTools.draw3DGridPoints(x, y, z, image) self.zdata = zdata
def buildPointList(self, selection=False): if selection: if self.vertexSelectionColors is None: self._getVertexSelectionColors() if self._configuration['private']['colorfilter']: tinyNumber = 1.0e-10 minValue = self._configuration['common']['colormap'][2] + tinyNumber maxValue = self._configuration['common']['colormap'][3] - tinyNumber Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexSelectionColors, self.values, 0, [1, minValue, maxValue]) else: Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexSelectionColors, self.values, 0, self._configuration['private']['useminmax']) else: Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexColors, self.values, self._configuration['private']['colorfilter'], self._configuration['private']['useminmax'])
def buildPointList(self, selection=False): if selection: if self.vertexSelectionColors is None: self._getVertexSelectionColors() if self._configuration['private']['colorfilter']: tinyNumber = 1.0e-10 minValue = self._configuration['common']['colormap'][2] + tinyNumber maxValue = self._configuration['common']['colormap'][3] - tinyNumber Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexSelectionColors, self.values, 0, [1, minValue, maxValue]) else: Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexSelectionColors, self.values, 0, self._configuration['private']['useminmax']) else: Object3DCTools.draw3DGridPoints(self._x, self._y, self._z, self.vertexColors, self.values, self._configuration['private']['colorfilter'], self._configuration['private']['useminmax'])