MCPcopy
hub / github.com/CadQuery/cadquery / BoundingBox

Method BoundingBox

cadquery/occ_impl/shapes.py:683–692  ·  view source on GitHub ↗

Create a bounding box for this Shape. :param tolerance: Tolerance value passed to :class:`BoundBox` :returns: A :class:`BoundBox` object for this Shape

(
        self, tolerance: float | None = None
    )

Source from the content-addressed store, hash-verified

681 return BRepCheck_Analyzer(self.wrapped).IsValid()
682
683 def BoundingBox(
684 self, tolerance: float | None = None
685 ) -> BoundBox: # need to implement that in GEOM
686 """
687 Create a bounding box for this Shape.
688
689 :param tolerance: Tolerance value passed to :class:`BoundBox`
690 :returns: A :class:`BoundBox` object for this Shape
691 """
692 return BoundBox._fromTopoDS(self.wrapped, tol=tolerance)
693
694 def mirror(
695 self,

Callers 15

CenterOfBoundBoxMethod · 0.95
filterMethod · 0.45
splitMethod · 0.45
largestDimensionMethod · 0.45
solveMethod · 0.45
textFunction · 0.45
getSVGFunction · 0.45
test_mirrorMethod · 0.45
test_all_planesMethod · 0.45
test_mirror_axisMethod · 0.45
test_mirror_workplaneMethod · 0.45

Calls 1

_fromTopoDSMethod · 0.80

Tested by 15

test_mirrorMethod · 0.36
test_all_planesMethod · 0.36
test_mirror_axisMethod · 0.36
test_mirror_workplaneMethod · 0.36
test_mirror_faceMethod · 0.36
test_bezier_curveMethod · 0.36
testBasicBoundingBoxMethod · 0.36
testImportDXFMethod · 0.36
testBoundingBoxMethod · 0.36