Docs Home
/
KCL Standard Library/
Functions/
Std Solver ControlPointSplinesolver::controlPointSplineFunction in std::solver
WARNING: This function is experimental and may change or be removed.
Create a control-point spline in a sketch.
The spline is defined by a control polygon. The curve generally passes through the first and last control points and is shaped by the interior control points.
The minimum input is three control points. The current degree policy is:
- 3 control points -> degree 2
- 4 or more control points -> degree 3
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
points | [Point2d; 3+] | The ordered control points of the spline's control polygon. | Yes |
construction | bool | Whether this segment is construction geometry rather than part of the modeled profile. | No |
Returns
Segment - A segment in a sketch created in a sketch block. It may be a line, arc, point, or other segment type.