solidcore

Units / nurbs

nlib.crv_tool_p1 green

Layer
5
Upstream lines
1,380
Functions
8
Rust module
nurbs::crv_tool::p1

Status history

Oct 12Nov 25
  1. todo 1,371 lines
  2. green 1,371 lines

Source: crates/solidcore/src/nurbs/crv_tool/p1.rs

Upstream: source/SMLib/src/NL_CrvTool.cpp

Port-plan notes

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

difftest: 2143 cases (143 fixtures + 2000 generated), 2143 pass bit-for-bit, 0 deferred (promoted when nlib.crv_nurb wired N_CrvGetMinMaxWeightsAndPts); 8 fns; largest: N_CrvElevateDegree, N_CrvRemoveKnot, N_CrvDecomposeBez, N_CrvExtractCrvSeg; cycle back-edges (call into later units; stub or co-port): nlib.crv_nurb(1); unit-SCC #6 (5 units); 317 upstream test entry points reach this unit

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,143
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.knots green nlib.math green

Soft dependencies: nlib.basis_basic green nlib.bezier green nlib.geom green

Dependents: nlib.crv_adv_p1 green nlib.crv_adv_p2 green nlib.crv_tool_p2 green nlib.srf_adv_p6 green

Soft dependents: nlib.crv_approx green nlib.crv_common green nlib.crv_geom green nlib.crv_nurb green nlib.crv_offset green nlib.funcs_adv green nlib.srf_adv_p4 green nlib.srf_adv_p5 green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_n_lib_p2 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
N_CrvInsertKnotNL_CrvTool.cpp:65138[Curve::insert_knot]
N_CrvSplitNL_CrvTool.cpp:253130[Curve::split]
N_CrvDecomposeBezNL_CrvTool.cpp:811174[Curve::decompose_bez]
N_CrvRefineNL_CrvTool.cpp:1369143[Curve::refine]
N_CrvExtractCrvSegNL_CrvTool.cpp:1561143[Curve::extract_seg]
N_CrvRemoveKnotNL_CrvTool.cpp:1752270[Curve::remove_knot], [KnotRemoval]
N_CrvRemoveKnotMaxErrNL_CrvTool.cpp:217479[Curve::remove_knot_max_err]
N_CrvElevateDegreeNL_CrvTool.cpp:3285303[Curve::elevate_degree]
Module file-header table (9 rows)
RustUpstream
[Curve::insert_knot]N_CrvInsertKnot
[Curve::split]N_CrvSplit
[Curve::decompose_bez]N_CrvDecomposeBez
[Curve::refine]N_CrvRefine
[Curve::extract_seg]N_CrvExtractCrvSeg
[Curve::remove_knot], [KnotRemoval]N_CrvRemoveKnot
[Curve::remove_knot_max_err]N_CrvRemoveKnotMaxErr
[Curve::elevate_degree]N_CrvElevateDegree
[REMOVAL_PARAM_TOL]cto (file-private)

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