コード例 #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
ファイル: arrow.py プロジェクト: yuhangwang/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]]))
コード例 #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
ファイル: bond.py プロジェクト: woutersmet/Zeo_thesis
 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
ファイル: bond.py プロジェクト: yuhangwang/zeobuilder
 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
ファイル: spring.py プロジェクト: woutersmet/Zeo_thesis
 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]))