nlib.crv_geom green
- Layer
- 7
- Upstream lines
- 729
- Functions
- 3
- Rust module
nurbs::crv_geom
Status history
- todo 729 lines
- green 729 lines
Source: crates/solidcore/src/nurbs/crv_geom.rs
Upstream: source/SMLib/src/NL_CrvGeom.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
main CI e33985411 (2026-10-23): PASS nlib.crv_geom cases=1725 passed=1725 failed=0 deferred=0. difftest: 1723 cases (223 fixtures on the six pt_TestFiles .smc curves + edge cases, 1500 generated), 1723 pass bit-for-bit, 0 deferred; wired UNPORTED(nlib.crv_geom) in nlib.crv_nurb (now green); 3 fns; largest: N_ApproxCrvWithPolyline, N_CrvArcLength, N_CrvClosestPt; 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
- 1,725
- 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_nurb green nlib.geom green nlib.math green
Soft dependencies: nlib.bezier green nlib.crv_tool_p1 green nlib.knots green
Dependents: none
Soft dependents: nlib.crv_adv_p1 green nlib.crv_adv_p2 green nlib.crv_approx green nlib.crv_common green nlib.srf_adv_p6 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
N_CrvClosestPt | NL_CrvGeom.cpp:64 | 156 | [Curve::closest_pt] |
N_CrvArcLength | NL_CrvGeom.cpp:659 | 211 | [Curve::arc_length] |
N_ApproxCrvWithPolyline | NL_CrvGeom.cpp:1531 | 362 | [Curve::approx_with_polyline], [Polyline] |
Module file-header table (7 rows)
| Rust | Upstream |
|---|---|
[Curve::closest_pt] | N_CrvClosestPt |
[Curve::closest_pt_search], [ClosestPtSearch] | N_CrvClosestPt (best values on failure, explicit NL_ITLIM) |
[Curve::arc_length] | N_CrvArcLength |
[Curve::approx_with_polyline], [Polyline] | N_ApproxCrvWithPolyline |
[ToleranceKind] | NL_ABSOLUTE / NL_RELATIVE |
[ITER_LIMIT] | NL_ITLIM (default value) |
ARC_TYPE_TOL (private) | ctl of N_CrvArcLength |
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