MCPcopy Index your code
hub / github.com/CadQuery/cadquery / CenterOfBoundBox

Method CenterOfBoundBox

cadquery/occ_impl/shapes.py:761–766  ·  view source on GitHub ↗

:param tolerance: Tolerance passed to the :py:meth:`BoundingBox` method :returns: Center of the bounding box of this shape

(self, tolerance: float | None = None)

Source from the content-addressed store, hash-verified

759 return Shape.centerOfMass(self)
760
761 def CenterOfBoundBox(self, tolerance: float | None = None) -> Vector:
762 """
763 :param tolerance: Tolerance passed to the :py:meth:`BoundingBox` method
764 :returns: Center of the bounding box of this shape
765 """
766 return self.BoundingBox(tolerance=tolerance).center
767
768 @staticmethod
769 def CombinedCenter(objects: Iterable[Shape]) -> Vector:

Callers 1

workplaneMethod · 0.80

Calls 1

BoundingBoxMethod · 0.95

Tested by

no test coverage detected