예제 #1
0
 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]))
예제 #2
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]]))
예제 #3
0
파일: arrow.py 프로젝트: molmod/zeobuilder
 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]
         ]))
예제 #4
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]))
예제 #5
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]))
예제 #6
0
 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]))