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

Method vertex

cadquery/occ_impl/shapes.py:1047–1055  ·  view source on GitHub ↗

Select a single vertex.

(self, selector: Selector | str | None = None)

Source from the content-addressed store, hash-verified

1045 return self._filter(selector, map(Shape.cast, self._entities("Solid")))
1046
1047 def vertex(self, selector: Selector | str | None = None) -> Vertex:
1048 """
1049 Select a single vertex.
1050 """
1051
1052 return tcast(
1053 Vertex,
1054 self._filter_single(selector, map(Shape.cast, self._entities("Vertex"))),
1055 )
1056
1057 def edge(self, selector: Selector | str | None = None) -> Edge:
1058 """

Callers 1

test_single_ent_selectorFunction · 0.80

Calls 2

_filter_singleMethod · 0.95
_entitiesMethod · 0.95

Tested by 1

test_single_ent_selectorFunction · 0.64