Construct a spline from points.
(*pts: VectorLike, tol: float = 1e-6, periodic: bool = False)
| 6301 | |
| 6302 | @multimethod |
| 6303 | def spline(*pts: VectorLike, tol: float = 1e-6, periodic: bool = False) -> Edge: |
| 6304 | """ |
| 6305 | Construct a spline from points. |
| 6306 | """ |
| 6307 | |
| 6308 | data = _pts_to_harray(pts) |
| 6309 | |
| 6310 | builder = GeomAPI_Interpolate(data, periodic, tol) |
| 6311 | builder.Perform() |
| 6312 | |
| 6313 | return _shape(BRepBuilderAPI_MakeEdge(builder.Curve()).Edge(), Edge) |
| 6314 | |
| 6315 | |
| 6316 | @multimethod |