Construct a polyline from points.
(*pts: VectorLike)
| 6262 | |
| 6263 | |
| 6264 | def polyline(*pts: VectorLike) -> Wire: |
| 6265 | """ |
| 6266 | Construct a polyline from points. |
| 6267 | """ |
| 6268 | |
| 6269 | builder = BRepBuilderAPI_MakePolygon() |
| 6270 | |
| 6271 | for p in pts: |
| 6272 | builder.Add(Vector(p).toPnt()) |
| 6273 | |
| 6274 | return _shape(builder.Wire(), Wire) |
| 6275 | |
| 6276 | |
| 6277 | def polygon(*pts: VectorLike) -> Wire: |