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

Function split

cadquery/occ_impl/shapes.py:6755–6771  ·  view source on GitHub ↗

Split one shape with another.

(
    s1: Shape,
    s2: Shape,
    tol: float = 0.0,
    history: History | None = None,
    name: str | None = None,
)

Source from the content-addressed store, hash-verified

6753
6754
6755def split(
6756 s1: Shape,
6757 s2: Shape,
6758 tol: float = 0.0,
6759 history: History | None = None,
6760 name: str | None = None,
6761) -> Shape:
6762 """
6763 Split one shape with another.
6764 """
6765
6766 builder = BRepAlgoAPI_Splitter()
6767 _bool_op(s1, s2, builder, tol)
6768
6769 _update_history(history, name, [s1, s2], builder)
6770
6771 return _compound_or_shape(builder.Shape())
6772
6773
6774def imprint(

Callers 1

__truediv__Method · 0.85

Calls 3

_bool_opFunction · 0.85
_update_historyFunction · 0.85
_compound_or_shapeFunction · 0.85

Tested by

no test coverage detected