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

Method __truediv__

cadquery/cq.py:3496–3509  ·  view source on GitHub ↗

Syntactic sugar for split. Notice that :code:`r = a / b` is equivalent to :code:`r = a.split(b)`. Example:: Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False)) Sphere = Workplane("XY").sphere(1) result = Box / Sphere

(self: T, other: Union["Workplane", Solid, Compound])

Source from the content-addressed store, hash-verified

3494 return self.intersect(other)
3495
3496 def __truediv__(self: T, other: Union["Workplane", Solid, Compound]) -> T:
3497 """
3498 Syntactic sugar for split.
3499
3500 Notice that :code:`r = a / b` is equivalent to :code:`r = a.split(b)`.
3501
3502 Example::
3503
3504 Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
3505 Sphere = Workplane("XY").sphere(1)
3506 result = Box / Sphere
3507 """
3508
3509 return self.split(other)
3510
3511 def cutBlind(
3512 self: T,

Callers

nothing calls this directly

Calls 1

splitMethod · 0.95

Tested by

no test coverage detected