def openBox(self,cmd): ''' Open a bounding box ''' from PyRatBox import PyRatBox box = PyRatBox(np.zeros(3),None) box.invisible = True box.empty = True self.top.contents.append(box) self.stack.append(self.top) self.top = self.top.contents[-1] self.verbose == 2 and sys.stderr.write('[%d}'%len(self.stack))
def openBox(self, cmd): ''' Open a bounding box ''' from PyRatBox import PyRatBox box = PyRatBox(np.zeros(3), None) box.invisible = True box.empty = True self.top.contents.append(box) self.stack.append(self.top) self.top = self.top.contents[-1] self.verbose == 2 and sys.stderr.write('[%d}' % len(self.stack))
def box(self,cmd): ''' Open a solid box Start a new container box and push on stack box minx miny minz maxx maxy maxz ''' from PyRatBox import PyRatBox box = PyRatBox(np.array(cmd[1:1+3]).astype(float),np.array(cmd[4:4+3]).astype(float)) box.invisible = False box.empty = False self.top.contents.append(box) self.verbose == 2 and sys.stderr.write('B'%len(self.stack))
def box(self, cmd): ''' Open a solid box Start a new container box and push on stack box minx miny minz maxx maxy maxz ''' from PyRatBox import PyRatBox box = PyRatBox( np.array(cmd[1:1 + 3]).astype(float), np.array(cmd[4:4 + 3]).astype(float)) box.invisible = False box.empty = False self.top.contents.append(box) self.verbose == 2 and sys.stderr.write('B' % len(self.stack))