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

Method val

cadquery/sketch.py:1153–1165  ·  view source on GitHub ↗

Return the first selected item, underlying compound or first edge.

(self: T)

Source from the content-addressed store, hash-verified

1151 return self.parent
1152
1153 def val(self: T) -> SketchVal:
1154 """
1155 Return the first selected item, underlying compound or first edge.
1156 """
1157
1158 if self._selection is not None:
1159 rv = self._selection[0]
1160 elif not self._faces and self._edges:
1161 rv = self._edges[0]
1162 else:
1163 rv = self._faces
1164
1165 return rv
1166
1167 def vals(self: T) -> List[SketchVal]:
1168 """

Callers 4

__add__Method · 0.95
__sub__Method · 0.95
__mul__Method · 0.95
__truediv__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected