Units / nurbs
nlib.basis_basic green
- Layer
- 2
- Upstream lines
- 786
- Functions
- 8
- Rust module
nurbs::basis_basic
Source: crates/solidcore/src/nurbs/basis_basic.rs
Upstream: source/SMLib/src/NL_BasisBasic.cpp
Notes
8 fns; green: 2596 difftest cases (1096 fixture + 1500 generated), 0 deferred, bit-identical (max_rel_err 0); 201,096-case run also clean. See plan/findings.md
Difftest
- Cases
- 2,596
- Passed
- 2,596
- Deferred
- 0
- Failed
- 0
- Both errored
- 195
- Max rel. error
- 0.0
- Tolerance
- 1e-09 rel.
- Seeds
- 16
Blocked by
Nothing: no deferred cases.
Report JSON (per-case results)
Dependencies
Depends on: nlib.knots green
Soft dependencies: nlib.geom green nlib.math green
Dependents: 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