solidcore

Units / nurbs

nlib.basis_basic green

Layer
2
Upstream lines
786
Functions
8
Rust module
nurbs::basis_basic

Status history

Oct 12Nov 25
  1. todo 786 lines
  2. 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 functionDefined atLinesRust (from the file header)
N_BasisFindGlobalMaxNL_BasisBasic.cpp:1751142[find_global_max]
N_BasisFindAllSpanMaximaNL_BasisBasic.cpp:1936131[find_all_span_maxima], [SpanMaxima]
N_BasisReparamNL_BasisBasic.cpp:220225[reparam]
N_GetCompatibleKnotArrayNL_BasisBasic.cpp:226810[compatible_knot_array]
N_GetCompatibleKnotVectorToTolNL_BasisBasic.cpp:2483197[compatible_knot_vectors_to_tol]
ST_notdoneNL_BasisBasic.cpp:269526not_done (private)
N_BasisDerivsNL_BasisBasic.cpp:2987178[basis_derivs], [BasisDerivs]
N_MakeKnotsCompatibleNL_BasisBasic.cpp:366577[make_knots_compatible]
Module file-header table (9 rows)
RustUpstream
[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