Makeathon ends in00:00:00:00
Docs Home
/
KCL Standard Library
/
Functions
/
Std Solver ControlPointSpline

solver::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

NameTypeDescriptionRequired
points[Point2d; 3+]The ordered control points of the spline's control polygon.Yes
constructionboolWhether 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.

Examples

Found a typo?