MCPcopy Index your code
hub / github.com/CadQuery/cadquery / __add__

Method __add__

cadquery/sketch.py:1224–1231  ·  view source on GitHub ↗

Fuse self and other.

(self: T, other: "Sketch")

Source from the content-addressed store, hash-verified

1222 return self
1223
1224 def __add__(self: T, other: "Sketch") -> T:
1225 """
1226 Fuse self and other.
1227 """
1228
1229 res = _sanitize_for_bool(self.val()) + _sanitize_for_bool(other.val())
1230
1231 return self.__class__(obj=_to_compound(res))
1232
1233 def __sub__(self: T, other: "Sketch") -> T:
1234 """

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