Ordered list of vertices of the wire.
(self)
| 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 | """ |