solidcore

Units / nurbs

nlib.crv_geom green

Layer
7
Upstream lines
729
Functions
3
Rust module
nurbs::crv_geom

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

Upstream: source/SMLib/src/NL_CrvGeom.cpp

Notes

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

Difftest

Cases
1,723
Passed
1,723
Deferred
0
Failed
0
Both errored
0
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.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 functionDefined atLinesRust (from the file header)
N_CrvClosestPtNL_CrvGeom.cpp:64156[Curve::closest_pt]
N_CrvArcLengthNL_CrvGeom.cpp:659211[Curve::arc_length]
N_ApproxCrvWithPolylineNL_CrvGeom.cpp:1531362[Curve::approx_with_polyline], [Polyline]
Module file-header table (7 rows)
RustUpstream
[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