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

Method _selected_faces

cadquery/sketch.py:1183–1193  ·  view source on GitHub ↗

Helper for returning selected faces.

(self: T)

Source from the content-addressed store, hash-verified

1181 return rv
1182
1183 def _selected_faces(self: T) -> Shape:
1184 """
1185 Helper for returning selected faces.
1186 """
1187
1188 if self._selection:
1189 return compound(
1190 [el for el in self._selection if isinstance(el, Shape)]
1191 ).faces()
1192 else:
1193 raise ValueError("Nothing is selected")
1194
1195 def add(self: T) -> T:
1196 """

Callers 4

addMethod · 0.95
subtractMethod · 0.95
replaceMethod · 0.95
test_selected_facesFunction · 0.80

Calls 2

compoundFunction · 0.85
facesMethod · 0.45

Tested by 1

test_selected_facesFunction · 0.64