solidcore

Units / nurbs

nlib.knots green

Layer
0
Upstream lines
768
Functions
12
Rust module
nurbs::knots

Status history

Oct 12Nov 25
  1. todo 768 lines
  2. green 768 lines

Source: crates/solidcore/src/nurbs/knots.rs

Upstream: source/SMLib/src/NL_BasisBasic.cpp

Port-plan notes

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

12 fns; largest: N_BasisIDerivs, N_BasisIEval, N_BasisFindSpan, N_BasisEval; 317 upstream test entry points reach this unit; GREEN: difftest 2953 cases (1753 fixture + 1200 generated), max_rel_err 0 (bit-identical); 50k-seed run clean

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,959
Stored error outcomes
570
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: none

Soft dependencies: none

Dependents: nlib.basis_adv green nlib.basis_basic 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_fit_p4 green nlib.crv_nurb green nlib.crv_tool_p1 green nlib.crv_tool_p2 green nlib.funcs_adv green nlib.srf_fit green nlib.srf_tool_p1 green nlib.srf_tool_p2 green nurbs.nurbs_crv green nurbs.nurbs_srf green

Soft dependents: curve.curve_cache green nlib.crv_approx green nlib.crv_geom green nlib.funcs_basic green nlib.iges green nlib.srf_adv_p2 green nlib.srf_adv_p3 green nlib.srf_adv_p4 green nlib.srf_adv_p5 green nlib.srf_adv_p6 green nlib.srf_basic green nlib.srf_nurb green nlib.srf_tool_p3 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_n_lib_p1 green surface.surface_cache_p2 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
N_KnotVectorIsParamOutOfBoundsNL_BasisBasic.cpp:5518[KnotVector::is_param_out_of_bounds]
N_KnotVectorIsEndParamNL_BasisBasic.cpp:11021[KnotVector::is_end_param]
N_KnotVectorIsValidNL_BasisBasic.cpp:17261[KnotVector::validate]
N_KnotVectorGetKnotsNL_BasisBasic.cpp:5195[KnotVector::knots], [KnotVector::last_index]
N_KnotVectorFromRealArrayNL_BasisBasic.cpp:5578[KnotVector::new]
N_SetKnotIndexNL_BasisBasic.cpp:5924[KnotVector::set_last_index]
N_BasisFindSpanNL_BasisBasic.cpp:1429121[KnotVector::find_span]
N_BasisFindSpanAndMultNL_BasisBasic.cpp:159765[KnotVector::find_span_and_mult]
N_BasisGetSpanCountNL_BasisBasic.cpp:169617[KnotVector::span_count]
N_BasisEvalNL_BasisBasic.cpp:283899[KnotVector::basis_eval]
N_BasisIEvalNL_BasisBasic.cpp:3206138[KnotVector::basis_i_eval]
N_BasisIDerivsNL_BasisBasic.cpp:3394211[KnotVector::basis_i_derivs]
Module file-header table (22 rows)
RustUpstream
[KnotVector]NL_KNOTVECTOR
[KnotVector::new]N_KnotVectorFromRealArray
[KnotVector::from_slice]N_KnotVectorFromRealArray (m = len-1)
[KnotVector::knots], [KnotVector::last_index]N_KnotVectorGetKnots
[KnotVector::set_last_index]N_SetKnotIndex
[KnotVector::is_param_out_of_bounds]N_KnotVectorIsParamOutOfBounds
[KnotVector::is_end_param]N_KnotVectorIsEndParam
[KnotVector::validate]N_KnotVectorIsValid
[KnotVector::find_span]N_BasisFindSpan
[KnotVector::find_span_and_mult]N_BasisFindSpanAndMult
[KnotVector::span_count]N_BasisGetSpanCount
[KnotVector::basis_eval]N_BasisEval
[KnotVector::basis_eval_into]N_BasisEval (caller's N array)
[KnotVector::basis_i_eval]N_BasisIEval
[KnotVector::basis_i_derivs]N_BasisIDerivs
[Side]NL_LEFT / NL_RIGHT flags
[MAX_DEGREE]NL_MAXDEG
[clamped_uniform]none (not upstream)
[periodic_uniform]none (not upstream)
[is_periodic]none (not upstream)
[joints]none (not upstream)
[span_midpoints]none (not 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