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

Method __mul__

cadquery/cq.py:3481–3494  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

3479 return self.intersect(other)
3480
3481 def __mul__(self: T, other: Union["Workplane", Solid, Compound]) -> T:
3482 """
3483 Syntactic sugar for intersect.
3484
3485 Notice that :code:`r = a * b` is equivalent to :code:`r = a.intersect(b)`.
3486
3487 Example::
3488
3489 Box = Workplane("XY").box(1, 1, 1, centered=(False, False, False))
3490 Sphere = Workplane("XY").sphere(1)
3491 result = Box * Sphere
3492 """
3493
3494 return self.intersect(other)
3495
3496 def __truediv__(self: T, other: Union["Workplane", Solid, Compound]) -> T:
3497 """

Callers

nothing calls this directly

Calls 1

intersectMethod · 0.95

Tested by

no test coverage detected