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

Method __sub__

cadquery/sketch.py:1233–1240  ·  view source on GitHub ↗

Subtract other from self.

(self: T, other: "Sketch")

Source from the content-addressed store, hash-verified

1231 return self.__class__(obj=_to_compound(res))
1232
1233 def __sub__(self: T, other: "Sketch") -> T:
1234 """
1235 Subtract other from self.
1236 """
1237
1238 res = _sanitize_for_bool(self.val()) - _sanitize_for_bool(other.val())
1239
1240 return self.__class__(obj=_to_compound(res))
1241
1242 def __mul__(self: T, other: "Sketch") -> T:
1243 """

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