primitive.api_curves green
- Layer
- 20
- Upstream lines
- 649
- Functions
- 13
- Rust module
primitive::api_curves
Status history
- todo 649 lines
- green 649 lines
Source: crates/solidcore/src/primitive/api_curves.rs
Upstream: source/SM_API/src/SmApiCurves.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
green: difftest 1629 cases (129 fixture + 1500 generated), 0 deferred, perturb SENSITIVE; 13 fns; largest: SmApiCreateHelix, SmApiCreateCurve, SmApiCreateRegularPolygon, SmApiCreateRectangle; entry points: SmApiCreateArc, SmApiCreateCanonicalCurve, SmApiCreateCircle, SmApiCreateCurve, SmApiCreateEllipse, SmApiCreateHelix, SmApiCreateLine, SmApiCreateLineSegment, SmApiCreateRectangle, SmApiCreateRegularPolygon; 63 upstream test entry points reach this unit SM_API batch S2 (fixer-7, 2026-10-29): SmApiRemoveCurveKnots ported (primitive::api_curves::remove_curve_knots; the B-spline kinds that derive from SmBSplineCurve upstream: B-spline, line, ellipse, hyperbola, parabola), with SmBSplineCurve::RemoveKnots in nurbs::b_spline_curve_n_lib; shim/FFI op 12 (remove_knots wrapping one constructor call), fixtures/primitive.api_curves/remove_knots.json (17, incl. TestSmRemoveCurveKnots) and 400 remove_knots cases from their own seeds (knot-inserted Bezier B-splines with a control point moved up to about the tolerance, at three scales). Gate counts: to be filled from the builder's run.
Goldens
This is committed inventory, not a runtime result or a correctness proof. A golden records what solidcore produced when blessed. Current results require the canonical CI gate, not these counts.
- Golden records
- 2,046
- Stored error outcomes
- 0
- Stored deferrals
- 0
- Stored harness rejections
- 0
- Known-failure entries
- 0
Metadata counts describe fields in the stored records; they are not passes or live failures.
Source at f9704ee3b:
golden JSONL ·
known-failure list.
Dependencies
Depends on: geom.vector3d green nurbs.b_spline_curve_p1 green
Soft dependencies: curve.ellipse_p1 green curve.line green geom.axis2_placement green geom.context green geom.extent1d green geom.tol green nurbs.b_spline_curve_n_lib green
Dependents: audit.recursion green nlib.crv_fit_p4 green primitive.api_curve_ops green primitive.api_surface_ops green primitive.api_trim_ops partial
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmApiCreateLineSegment | SmApiCurves.cpp:47 | 36 | [create_line_segment] |
SmApiCreateLine | SmApiCurves.cpp:90 | 40 | [create_line] |
SmApiConicInputsValid | SmApiCurves.cpp:154 | 32 | conic_inputs_valid (private) |
SmApiCircleInputsValid | SmApiCurves.cpp:187 | 4 | circle_inputs_valid (private) |
SmApiCreateCircle | SmApiCurves.cpp:199 | 48 | [create_circle] |
SmApiCreateCircle | SmApiCurves.cpp:255 | 48 | [create_circle] |
SmApiCreateEllipse | SmApiCurves.cpp:310 | 46 | [create_ellipse] |
SmApiCreateArc | SmApiCurves.cpp:364 | 43 | [create_arc] |
SmApiCreateHelix | SmApiCurves.cpp:446 | 144 | [create_helix], [HelixParams] |
SmApiCreateRectangle | SmApiCurves.cpp:596 | 54 | [create_rectangle] |
SmApiCreateRegularPolygon | SmApiCurves.cpp:680 | 55 | [create_regular_polygon] |
SmApiCreateCurve | SmApiCurves.cpp:743 | 57 | [create_curve] |
SmApiCreateCanonicalCurve | SmApiCurves.cpp:808 | 42 | [create_canonical_curve], [CanonicalCurveParams] |
Module file-header table (15 rows)
| Rust | Upstream |
|---|---|
[create_line_segment] | SmApiCreateLineSegment |
[create_line] | SmApiCreateLine |
conic_inputs_valid (private) | SmApiConicInputsValid (static) |
circle_inputs_valid (private) | SmApiCircleInputsValid (static) |
[create_circle] | SmApiCreateCircle (SmBSplineCurve*& overload) |
[create_analytic_circle] | SmApiCreateCircle (SmCircle*& overload) |
[create_ellipse] | SmApiCreateEllipse |
[create_arc] | SmApiCreateArc |
[create_helix], [HelixParams] | SmApiCreateHelix |
[create_rectangle] | SmApiCreateRectangle |
[create_regular_polygon] | SmApiCreateRegularPolygon |
[create_curve] | SmApiCreateCurve |
[create_canonical_curve], [CanonicalCurveParams] | SmApiCreateCanonicalCurve |
[create_curve_approx_points] | SmApiCreateCurveApproxPoints (unit nlib.crv_fit_p4) |
[remove_curve_knots] | SmApiRemoveCurveKnots |
Upstream tests reaching this unit
SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon, SM_API_test:TestSmCreateArc, SM_API_test:TestSmCreateCanonicalCurve, SM_API_test:TestSmCreateCurve, SM_API_test:TestSmCreateCircle