Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
 def compound(self):
     return Compound._makeCompound(self.compounds())
Esempio n. 4
0
 def compound(self):
     return Compound._makeCompound(self.compounds())  # pylint: disable=protected-access
Esempio n. 5
0
 def compound(self):
     return Compound._makeCompound(self.shape)