nlib.crv_fit_p1 green
- Layer
- 5
- Upstream lines
- 1,707
- Functions
- 12
- Rust module
nurbs::crv_fit::p1
Status history
- todo 1,707 lines
- green 1,707 lines
Source: crates/solidcore/src/nurbs/crv_fit/p1.rs
Upstream: source/SMLib/src/NL_CrvFit.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
12 fns; largest: N_FitCrvApproxKnots, N_FitCrvKnotsAndDeriv, N_FitCrvFirstDerivAndKnots, N_FitCrvKnotsAndDerivs; 317 upstream test entry points reach this unit; difftest green: 2084 cases (84 fixtures + 2000 generated), 0 deferred, max_rel_err 0
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,089
- 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.knots green nlib.math green
Soft dependencies: nlib.basis_basic green nlib.crv_basic green nlib.geom green
Dependents: nlib.crv_approx green nlib.crv_fit_p2 green nlib.crv_fit_p3 green nlib.crv_fit_p4 green nlib.crv_offset green nlib.srf_adv_p1 green nlib.srf_adv_p3 green nlib.srf_adv_p5 green nlib.srf_fit green
Soft dependents: nlib.srf_adv_p4 green nlib.srf_offset green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
N_FitCalcCrvParamValues | NL_CrvFit.cpp:1361 | 138 | [param_values] |
N_FitCrvCalcKnotVector | NL_CrvFit.cpp:2000 | 42 | [interp_knot_vector] |
N_FitCrvInterpGivenParams | NL_CrvFit.cpp:2273 | 144 | [interp_given_params] |
N_FitCalcKnotVectorEndDerivs | NL_CrvFit.cpp:2458 | 58 | [knot_vector_end_derivs] |
N_FitCalcKnotVectorDeriv | NL_CrvFit.cpp:2562 | 95 | [knot_vector_deriv] |
N_FitCrvKnotsAndDerivs | NL_CrvFit.cpp:3063 | 184 | [interp_knots_and_derivs] |
N_FitCrvKnotsAndDeriv | NL_CrvFit.cpp:3313 | 251 | [interp_knots_and_deriv] |
N_FitCrvCPtsFromSrfData | NL_CrvFit.cpp:3877 | 99 | [cpts_from_srf_data] |
N_FitCalcKnotVectorCrvApprox | NL_CrvFit.cpp:4023 | 98 | [knot_vector_approx] |
N_FitCrvApproxKnots | NL_CrvFit.cpp:5461 | 307 | [approx_knots] |
N_FitCrvDerivsMatrix | NL_CrvFit.cpp:6605 | 102 | [derivs_matrix] |
N_FitCrvFirstDerivAndKnots | NL_CrvFit.cpp:7923 | 189 | [interp_first_derivs_and_knots] |
Module file-header table (16 rows)
| Rust | Upstream |
|---|---|
[FitPoint] (Vec3 / [CPoint]) | NL_EPOINT / NL_HPOINT data behind NL_VOID * |
[ParamMethod] | NL_UNIFORM / NL_CHORDLENGTH / NL_CENTRIPETAL |
[DerivEnd] | NL_START / NL_END |
[DataDir] | NL_UDIR / NL_VDIR |
[param_values] | N_FitCalcCrvParamValues |
[interp_knot_vector] | N_FitCrvCalcKnotVector |
[knot_vector_end_derivs] | N_FitCalcKnotVectorEndDerivs |
[knot_vector_deriv] | N_FitCalcKnotVectorDeriv |
[knot_vector_approx] | N_FitCalcKnotVectorCrvApprox |
[interp_given_params] | N_FitCrvInterpGivenParams |
[interp_knots_and_derivs] | N_FitCrvKnotsAndDerivs |
[interp_knots_and_deriv] | N_FitCrvKnotsAndDeriv |
[interp_first_derivs_and_knots] | N_FitCrvFirstDerivAndKnots |
[approx_knots] | N_FitCrvApproxKnots |
[cpts_from_srf_data] | N_FitCrvCPtsFromSrfData |
[derivs_matrix] | N_FitCrvDerivsMatrix |
Upstream tests reaching this unit
prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon