solidcore

Units / nurbs

nlib.crv_approx green

Layer
10
Upstream lines
908
Functions
3
Rust module
nurbs::crv_approx

Status history

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

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

Upstream: source/SMLib/src/NL_CrvApprox.cpp

Port-plan notes

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

3 fns; largest: N_CalcNumCPtsToApproxArc, N_ApproxCircArcWithCrvData, N_ApproxNurbsWithNonRatCrv; 151 upstream test entry points reach this unit; difftest: 1646 cases (146 fixture + 1500 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
1,646
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.crv_basic green nlib.crv_fit_p1 green nlib.funcs_basic green nlib.geom green nlib.math green

Soft dependencies: nlib.crv_adv_p1 green nlib.crv_adv_p2 green nlib.crv_fit_p2 green nlib.crv_fit_p3 green nlib.crv_geom green nlib.crv_nurb green nlib.crv_tool_p1 green nlib.knots green nlib.srf_fit green

Dependents: nurbs.b_spline_curve_n_lib green

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
N_CalcNumCPtsToApproxArcNL_CrvApprox.cpp:1892324[calc_num_cpts_to_approx_arc]
N_ApproxCircArcWithCrvDataNL_CrvApprox.cpp:2274321[approx_circ_arc_with_crv_data], [CircArcData]
N_ApproxNurbsWithNonRatCrvNL_CrvApprox.cpp:2698263[approx_nurbs_with_non_rat_crv]
Module file-header table (4 rows)
RustUpstream
[calc_num_cpts_to_approx_arc]N_CalcNumCPtsToApproxArc
[arc_cpts_function]the table fit of N_CalcNumCPtsToApproxArc (sfn NULL on input)
[approx_circ_arc_with_crv_data], [CircArcData]N_ApproxCircArcWithCrvData
[approx_nurbs_with_non_rat_crv]N_ApproxNurbsWithNonRatCrv

Upstream tests reaching this unit

prog_test:my_test_parallel_projection, prog_test:my_test_tsurf_projection, prog_test:my_test_surface_interface, prog_test:my_test_ssi, prog_test:my_test_tsurf_section, prog_test:my_test_bsplinesurface_nlib