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

Method vals

cadquery/sketch.py:1167–1181  ·  view source on GitHub ↗

Return all selected items, underlying compound or all edges.

(self: T)

Source from the content-addressed store, hash-verified

1165 return rv
1166
1167 def vals(self: T) -> List[SketchVal]:
1168 """
1169 Return all selected items, underlying compound or all edges.
1170 """
1171
1172 rv: List[SketchVal]
1173
1174 if self._selection is not None:
1175 rv = list(self._selection)
1176 elif not self._faces and self._edges:
1177 rv = list(self._edges)
1178 else:
1179 rv = list(self._faces)
1180
1181 return rv
1182
1183 def _selected_faces(self: T) -> Shape:
1184 """

Callers 5

__getitem__Method · 0.95
filterMethod · 0.95
mapMethod · 0.95
applyMethod · 0.95
sortMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected