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

Method __mul__

cadquery/sketch.py:1242–1249  ·  view source on GitHub ↗

Intersect self and other.

(self: T, other: "Sketch")

Source from the content-addressed store, hash-verified

1240 return self.__class__(obj=_to_compound(res))
1241
1242 def __mul__(self: T, other: "Sketch") -> T:
1243 """
1244 Intersect self and other.
1245 """
1246
1247 res = _sanitize_for_bool(self.val()) * _sanitize_for_bool(other.val())
1248
1249 return self.__class__(obj=_to_compound(res))
1250
1251 def __truediv__(self: T, other: "Sketch") -> T:
1252 """

Callers

nothing calls this directly

Calls 3

valMethod · 0.95
_sanitize_for_boolFunction · 0.85
_to_compoundFunction · 0.85

Tested by

no test coverage detected