solidcore

Units / nurbs

nlib.crv_fit_p4 green

Layer
21
Upstream lines
520
Functions
0
Rust module
nurbs::crv_fit::p4

Status history

Oct 12Nov 25
  1. green 520 lines

Source: crates/solidcore/src/nurbs/crv_fit/p4.rs

Upstream: source/SMLib/src/NL_CrvFit.cpp, source/SMLib/src/SmBSplineCurveNLib.cpp, source/SM_API/src/SmApiCurves.cpp

Port-plan notes

These notes preserve historical port measurements and limitations, not current CI results.

SM_API gap M3 (SmApiCreateCurveApproxPoints). NOT IN callgraph/units.json: N_FitCrvApproxDerivs and N_FitCalcKnotsEndDerivs are in harness/callgraph/unused_functions.txt; SmBSplineCurve::CreateApproximatingCurve and SmApiCreateCurveApproxPoints are owned by no unit (N_InitNurbs / N_EndNurbs / N_Alloc* / N_Free are NLib memory management with no counterpart). Rust: nurbs::crv_fit::p4::approx_end_derivs / knots_end_derivs (this module), BSplineCurve::create_approximating_curve (completion in nurbs/b_spline_curve_n_lib.rs) and primitive::api_curves::create_curve_approx_points (completion in primitive/api_curves.rs). No upstream test calls these; fixtures cover the API's control-point-count thresholds (4, 8/9, 16/17 points), every CreateApproximatingCurve vector branch (including the one-vector branch's third derivative from more_vectors[2], the documented [start2, end2, start3, end3] layout, read only when more than 2 are given; a 2-entry list skips it), and each N_FitCrvApproxDerivs input check and early exit. Status pending the gate 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
932
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: nlib.basis_basic green nlib.crv_fit_p1 green nlib.crv_fit_p2 green nlib.knots green nlib.math green nurbs.b_spline_curve_n_lib green primitive.api_curves green

Soft dependencies: none

Dependents: none

Soft dependents: none

Upstream functions

No upstream functions listed in harness/callgraph/units.json.

Module file-header table (2 rows)
RustUpstream
[approx_end_derivs]N_FitCrvApproxDerivs
[knots_end_derivs]N_FitCalcKnotsEndDerivs

Upstream tests reaching this unit

none