Exemple #1
0
def step_impl(context):
    context.box = BoundingBox()
Exemple #2
0
def step_impl(context, attribute, min_x, min_y, min_z, max_x, max_y, max_z):
    setattr(
        context, attribute,
        BoundingBox(point(min_x, min_y, min_z), point(max_x, max_y, max_z)))
 def bounds_of(self) -> BoundingBox:
     a = abs(self.minimum)
     b = abs(self.maximum)
     limit = max(a, b)
     return BoundingBox(point(-limit, self.minimum, -limit),
                        point(limit, self.maximum, limit))
Exemple #4
0
 def bounds_of(self) -> BoundingBox:
     return BoundingBox(point(-1, -1, -1), point(1, 1, 1))
 def bounds_of(self) -> BoundingBox:
     bounding_box = BoundingBox()
     for child in self.children:
         child_boundary = child.parent_space_bounds_of()
         bounding_box.add(child_boundary)
     return bounding_box
Exemple #6
0
 def bounds_of(self) -> BoundingBox:
     return BoundingBox(point(-1, self.minimum, -1),
                        point(1, self.maximum, 1))