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

Method replace

cadquery/sketch.py:1215–1222  ·  view source on GitHub ↗

Replace the underlying faces with the selection.

(self: T)

Source from the content-addressed store, hash-verified

1213 return self
1214
1215 def replace(self: T) -> T:
1216 """
1217 Replace the underlying faces with the selection.
1218 """
1219
1220 self._faces = tcast(Compound, self._selected_faces())
1221
1222 return self
1223
1224 def __add__(self: T, other: "Sketch") -> T:
1225 """

Callers 15

runMethod · 0.45
test_mapFunction · 0.45
test_replaceFunction · 0.45
test_replaceFunction · 0.45
tearDownMethod · 0.45
vtk.jsFile · 0.45
ecFunction · 0.45
mMFunction · 0.45
nNFunction · 0.45
uFFunction · 0.45
GFunction · 0.45
OFunction · 0.45

Calls 1

_selected_facesMethod · 0.95

Tested by 4

test_mapFunction · 0.36
test_replaceFunction · 0.36
test_replaceFunction · 0.36
tearDownMethod · 0.36