solidcore

Units / primitive

primitive.api_curves green

Layer
20
Upstream lines
649
Functions
13
Rust module
primitive::api_curves

Status history

Oct 12Nov 25
  1. todo 649 lines
  2. 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 functionDefined atLinesRust (from the file header)
SmApiCreateLineSegmentSmApiCurves.cpp:4736[create_line_segment]
SmApiCreateLineSmApiCurves.cpp:9040[create_line]
SmApiConicInputsValidSmApiCurves.cpp:15432conic_inputs_valid (private)
SmApiCircleInputsValidSmApiCurves.cpp:1874circle_inputs_valid (private)
SmApiCreateCircleSmApiCurves.cpp:19948[create_circle]
SmApiCreateCircleSmApiCurves.cpp:25548[create_circle]
SmApiCreateEllipseSmApiCurves.cpp:31046[create_ellipse]
SmApiCreateArcSmApiCurves.cpp:36443[create_arc]
SmApiCreateHelixSmApiCurves.cpp:446144[create_helix], [HelixParams]
SmApiCreateRectangleSmApiCurves.cpp:59654[create_rectangle]
SmApiCreateRegularPolygonSmApiCurves.cpp:68055[create_regular_polygon]
SmApiCreateCurveSmApiCurves.cpp:74357[create_curve]
SmApiCreateCanonicalCurveSmApiCurves.cpp:80842[create_canonical_curve], [CanonicalCurveParams]
Module file-header table (15 rows)
RustUpstream
[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