Units / nurbs
nlib.crv_common green
- Layer
- 8
- Upstream lines
- 803
- Functions
- 8
- Rust module
nurbs::crv_common
Source: crates/solidcore/src/nurbs/crv_common.rs
Upstream: source/SMLib/src/NL_CrvCommon.cpp
Notes
8 fns; largest: N_CreateQuarticArcTol, N_CreateQuadraticArcTol, N_CreateQuinticArcTol, N_CreateEllipticalArcAngTypeTol; 317 upstream test entry points reach this unit; difftest: 2137 cases (137 fixture + 2000 generated), 0 deferred, bit-exact
Difftest
- Cases
- 2,137
- Passed
- 2,137
- 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.geom green nlib.math green
Soft dependencies: nlib.crv_geom green nlib.crv_tool_p1 green
Dependents: none
Soft dependents: curve.ellipse_p1 green nlib.crv_offset green nlib.srf_common green nurbs.b_spline_curve_p1 green primitive.primitive_creation_p1 claimed
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
N_CreateQuadraticArcTol | NL_CrvCommon.cpp:75 | 173 | [quadratic_arc_tol] |
N_CreateQuarticArcTol | NL_CrvCommon.cpp:311 | 205 | [quartic_arc_tol] |
N_CreateQuinticArcTol | NL_CrvCommon.cpp:581 | 157 | [quintic_arc_tol] |
N_CreateCircArc | NL_CrvCommon.cpp:745 | 24 | [circ_arc], [DEFAULT_ANGLE_TOL] |
N_CreateCircArcTol | NL_CrvCommon.cpp:823 | 56 | [circ_arc_tol] |
N_CalcCircWeights | NL_CrvCommon.cpp:919 | 44 | [circ_weights] |
N_CreateEllipticalArcTol | NL_CrvCommon.cpp:989 | 16 | [elliptical_arc_tol] |
N_CreateEllipticalArcAngTypeTol | NL_CrvCommon.cpp:1090 | 128 | [elliptical_arc_ang_type_tol], [AngleType] |
Module file-header table (10 rows)
| Rust | Upstream |
|---|---|
[Arc] | the C, X, Y, r, as, ae arguments |
[EllipseArc] | the C, X, Y, r1, r2, as, ae arguments |
[quadratic_arc_tol] | N_CreateQuadraticArcTol |
[quartic_arc_tol] | N_CreateQuarticArcTol |
[quintic_arc_tol] | N_CreateQuinticArcTol |
[circ_arc], [DEFAULT_ANGLE_TOL] | N_CreateCircArc (at = 0.01) |
[circ_arc_tol] | N_CreateCircArcTol |
[circ_weights] | N_CalcCircWeights |
[elliptical_arc_tol] | N_CreateEllipticalArcTol |
[elliptical_arc_ang_type_tol], [AngleType] | N_CreateEllipticalArcAngTypeTol |
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