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

Method Vertices

cadquery/occ_impl/shapes.py:3236–3254  ·  view source on GitHub ↗

Ordered list of vertices of the wire.

(self)

Source from the content-addressed store, hash-verified

3234 return Wire.assembleEdges(newEdges)
3235
3236 def Vertices(self) -> list[Vertex]:
3237 """
3238 Ordered list of vertices of the wire.
3239 """
3240
3241 rv = []
3242
3243 exp = BRepTools_WireExplorer(self.wrapped)
3244 rv.append(Vertex(exp.CurrentVertex()))
3245
3246 while exp.More():
3247 exp.Next()
3248 rv.append(Vertex(exp.CurrentVertex()))
3249
3250 # handle closed wires correclty
3251 if self.IsClosed():
3252 rv = rv[:-1]
3253
3254 return rv
3255
3256 def __iter__(self) -> Iterator[Edge]:
3257 """

Callers 11

filletMethod · 0.95
_matchFacesToVerticesMethod · 0.45
_get_wire_listsFunction · 0.45
_get_face_listsFunction · 0.45
_update_historyFunction · 0.45
testVerticesMethod · 0.45
testWireFilletMethod · 0.45
test_hullFunction · 0.45
testMakeShellSolidMethod · 0.45
test2DfilletMethod · 0.45
test2DchamferMethod · 0.45

Calls 3

VertexClass · 0.85
appendMethod · 0.80
IsClosedMethod · 0.80

Tested by 6

testVerticesMethod · 0.36
testWireFilletMethod · 0.36
test_hullFunction · 0.36
testMakeShellSolidMethod · 0.36
test2DfilletMethod · 0.36
test2DchamferMethod · 0.36