Пример #1
0
def bounding_box(objs, loc=None, optimal=False):
    if isinstance(objs, (list, tuple)):
        compound = Compound._makeCompound(objs)
    else:
        compound = objs

    return BoundingBox(compound if loc is None else compound.Moved(loc.wrapped), optimal=optimal)
Пример #2
0
def bounding_box(objs, loc=None, optimal=False):
    if isinstance(objs, (list, tuple)):
        compound = Compound._makeCompound(objs)  # pylint: disable=protected-access
    else:
        compound = objs

    return BoundingBox(compound if loc is None else compound.Moved(loc),
                       optimal=optimal)
Пример #3
0
 def compound(self):
     return Compound._makeCompound(self.compounds())
Пример #4
0
 def compound(self):
     return Compound._makeCompound(self.compounds())  # pylint: disable=protected-access
Пример #5
0
 def compound(self):
     return Compound._makeCompound(self.shape)