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

Method subtract

cadquery/sketch.py:1205–1213  ·  view source on GitHub ↗

Subtract selection from the underlying faces.

(self: T)

Source from the content-addressed store, hash-verified

1203 return self
1204
1205 def subtract(self: T) -> T:
1206 """
1207 Subtract selection from the underlying faces.
1208 """
1209
1210 if self._selection:
1211 self._faces = tcast(Compound, self._faces - self._selected_faces())
1212
1213 return self
1214
1215 def replace(self: T) -> T:
1216 """

Callers 3

test_subtractFunction · 0.80
iFunction · 0.80
fJFunction · 0.80

Calls 1

_selected_facesMethod · 0.95

Tested by 1

test_subtractFunction · 0.64