def revalidate_bounding_box(self): Vector.revalidate_bounding_box(self) if self.length > 0: self.bounding_box.extend_with_point( numpy.array([-self.radius, -self.radius, 0])) self.bounding_box.extend_with_point( numpy.array([self.radius, self.radius, self.length]))
def revalidate_bounding_box(self): Vector.revalidate_bounding_box(self) if self.length > 0.0: self.bounding_box.extend_with_corners( numpy.array([[0.0, 0.0, 0.0], [0.0, 0.0, self.length]])) temp = { True: self.radius, False: self.arrow_radius }[self.radius > self.arrow_radius] self.bounding_box.extend_with_corners( numpy.array([[-temp, -temp, 0.0], [temp, temp, 0.0]]))
def revalidate_bounding_box(self): Vector.revalidate_bounding_box(self) if self.length > 0.0: self.bounding_box.extend_with_corners(numpy.array([ [0.0, 0.0, 0.0], [0.0, 0.0, self.length] ])) temp = {True: self.radius, False: self.arrow_radius}[self.radius > self.arrow_radius] self.bounding_box.extend_with_corners(numpy.array([ [-temp, -temp, 0.0], [ temp, temp, 0.0] ]))
def revalidate_bounding_box(self): Vector.revalidate_bounding_box(self) if self.length > 0: temp = {True: self.begin_radius, False: self.end_radius}[self.begin_radius > self.end_radius] self.bounding_box.extend_with_point(numpy.array([-temp, -temp, self.begin_position])) self.bounding_box.extend_with_point(numpy.array([temp, temp, self.end_position]))
def revalidate_bounding_box(self): Vector.revalidate_bounding_box(self) if self.length > 0: self.bounding_box.extend_with_point(numpy.array([-self.radius, -self.radius, 0])) self.bounding_box.extend_with_point(numpy.array([self.radius, self.radius, self.length]))