def draw(self): pushMatrix() translate(-self.bounds['x'].delta()/2.0, -self.bounds['y'].delta()/2.0, -self.bounds['z'].delta()/2.0) cube(self.bounds['x'].delta(), self.bounds['y'].delta(), self.bounds['z'].delta()) popMatrix()
def draw(self): for obj in self.tracked_objects: if hasattr(obj, 'active'): color(red) else: color(0.25) pushMatrix() translate(obj.origin) obj.region.draw() popMatrix()