nlib.basis_basic green
- Layer
- 2
- Upstream lines
- 786
- Functions
- 8
- Rust module
nurbs::basis_basic
Status history
- todo 786 lines
- green 786 lines
Source: crates/solidcore/src/nurbs/basis_basic.rs
Upstream: source/SMLib/src/NL_BasisBasic.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
8 fns; green: 2605 difftest cases (1105 fixture + 1500 generated), 0 deferred, bit-identical (max_rel_err 0); 201,105-case run and --fuzz 30000 also clean (issue #182). See plan/findings.md
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,605
- Stored error outcomes
- 206
- 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
Soft dependencies: nlib.geom green nlib.math green
Dependents: nlib.crv_fit_p4 green nlib.crv_tool_p2 green
Soft dependents: nlib.basis_adv green nlib.crv_adv_p1 green nlib.crv_adv_p2 green nlib.crv_fit_p1 green nlib.crv_fit_p2 green nlib.crv_fit_p3 green nlib.crv_tool_p1 green nlib.funcs_adv green nlib.funcs_basic green nlib.srf_adv_p6 green nlib.srf_tool_p2 green nlib.srf_tool_p3 green nlib.srf_tool_p4 green nurbs.b_spline_curve_p1 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
N_BasisFindGlobalMax | NL_BasisBasic.cpp:1751 | 142 | [find_global_max] |
N_BasisFindAllSpanMaxima | NL_BasisBasic.cpp:1936 | 131 | [find_all_span_maxima], [SpanMaxima] |
N_BasisReparam | NL_BasisBasic.cpp:2202 | 25 | [reparam] |
N_GetCompatibleKnotArray | NL_BasisBasic.cpp:2268 | 10 | [compatible_knot_array] |
N_GetCompatibleKnotVectorToTol | NL_BasisBasic.cpp:2483 | 197 | [compatible_knot_vectors_to_tol] |
ST_notdone | NL_BasisBasic.cpp:2695 | 26 | not_done (private) |
N_BasisDerivs | NL_BasisBasic.cpp:2987 | 178 | [basis_derivs], [BasisDerivs] |
N_MakeKnotsCompatible | NL_BasisBasic.cpp:3665 | 77 | [make_knots_compatible] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[find_global_max] | N_BasisFindGlobalMax |
[find_all_span_maxima], [SpanMaxima] | N_BasisFindAllSpanMaxima |
[reparam] | N_BasisReparam |
[compatible_knot_array] | N_GetCompatibleKnotArray |
[compatible_knot_vectors_to_tol] | N_GetCompatibleKnotVectorToTol |
not_done (private) | ST_notdone |
[basis_derivs], [BasisDerivs] | N_BasisDerivs |
[make_knots_compatible] | N_MakeKnotsCompatible |
[PTOL] | NL_PTOL (never reassigned upstream) |
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