solidcore

Units / nurbs

nlib.srf_nurb green

Layer
10
Upstream lines
2,518
Functions
24
Rust module
nurbs::srf_nurb

Status history

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

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

Upstream: source/SMLib/inc/NL_Nurbsdef.h, source/SMLib/src/NL_SrfNurb.cpp

Port-plan notes

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

difftest green: 2702 cases (202 fixture + 2500 generated), 0 deferred, max_rel_err 0; 24 fns; largest: N_SrfType, N_SrfBasisDerivs, N_ConeEllipticEnds, N_SrfIsClosedSmooth; unit-SCC #22 (220 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,711
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 nlib.srf_basic green

Soft dependencies: geom.a_object green nlib.knots green nlib.srf_common green nlib.srf_tool_p1 green

Dependents: nlib.srf_adv_p1 green nlib.srf_offset green nurbs.b_spline_surface_n_lib_p1 green

Soft dependents: nlib.srf_adv_p2 green nlib.srf_adv_p3 green nlib.srf_adv_p4 green nlib.srf_adv_p5 green nlib.srf_tool_p2 green nlib.srf_tool_p3 green nlib.srf_tool_p4 green nurbs.b_spline_surface_n_lib_p2 green nurbs.b_spline_surface_p1 green nurbs.nurbs_srf green primitive.primitive_creation_p1 green surface.surface_cache_p2 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
NL_BASISDERIVATIVES::operator[]NL_Nurbsdef.h:444[BasisDerivs], [BasisDerivs::get]
N_ComputeBasisFunctionsNL_SrfNurb.cpp:5127compute_basis_functions (private)
N_SwapRealPointersNL_SrfNurb.cpp:1046compute_derivatives (private)
N_ComputeDerivativesImplNL_SrfNurb.cpp:14445compute_derivatives (private)
N_ComputeDerivativesNL_SrfNurb.cpp:19011compute_derivatives (private)
N_SrfBasisDerivsNL_SrfNurb.cpp:259268[Surface::basis_derivs]
N_SrfEvalPtImplNL_SrfNurb.cpp:143164[Surface::eval]
N_SrfEvalPtNL_SrfNurb.cpp:153329[Surface::eval]
N_ComputeDerivativeMatrixSpecNL_SrfNurb.cpp:169946derivative_matrix (private)
N_ComputeDerivativeMatrixNL_SrfNurb.cpp:178642derivative_matrix (private)
N_SrfDerivsNL_SrfNurb.cpp:190164[Surface::derivs]
N_SrfGetBBoxNL_SrfNurb.cpp:199738[Surface::bbox]
N_SrfTransformNL_SrfNurb.cpp:213621[Surface::transform]
N_SrfMinMaxWeightPosVectorsNL_SrfNurb.cpp:218875[Surface::min_max_weight_pos_vectors], [MinMaxWeightPos]
N_SrfEvalPtPtDerivNormalFastNL_SrfNurb.cpp:238283[Surface::eval_pt_deriv_normal_fast], [PtDerivNormal]
N_SrfTranslateNL_SrfNurb.cpp:287321[Surface::translate]
N_SrfRotateAtPtNL_SrfNurb.cpp:293147[Surface::rotate_at_pt]
N_SrfReverseNL_SrfNurb.cpp:3231119[Surface::reverse] / [Surface::reversed]
N_SrfTypeNL_SrfNurb.cpp:3769853[Surface::surface_type], [SurfaceType], [SurfaceKind]
N_SrfReparamNL_SrfNurb.cpp:465721[Surface::reparam]
N_SrfIsClosedSmoothNL_SrfNurb.cpp:5016245[Surface::is_closed_smooth], [Surface::is_closed_smooth_flag], _with_fixes forms
N_SrfEvalPtPtDerivNormalPoleNL_SrfNurb.cpp:530424[Surface::eval_pt_deriv_normal_pole]
N_SrfEvalPtNormalAtPoleNL_SrfNurb.cpp:5376109[Surface::eval_pt_normal_at_pole]
N_ConeEllipticEndsNL_SrfNurb.cpp:5728256[cone_elliptic_ends], [EllipticCone]
Module file-header table (22 rows)
RustUpstream
[BasisDerivs], [BasisDerivs::get]NL_BASISDERIVATIVES, NL_BASISDERIVATIVES::operator[]
compute_basis_functions (private)N_ComputeBasisFunctions
compute_derivatives (private)N_ComputeDerivatives, N_ComputeDerivativesImpl, N_SwapRealPointers
[Surface::basis_derivs]N_SrfBasisDerivs
[Surface::eval]N_SrfEvalPt, N_SrfEvalPtImpl
blend_spec, to_euclid_spec (private)NI_VectorBlendCPt_specialized, NI_CPtToPtEuclid_specialized
derivative_matrix (private)N_ComputeDerivativeMatrix, N_ComputeDerivativeMatrixSpec
[Surface::derivs]N_SrfDerivs
[Surface::first_derivs_into]N_SrfDerivs with udr = vdr = 1
[Surface::bbox]N_SrfGetBBox
[Surface::transform]N_SrfTransform
[Surface::min_max_weight_pos_vectors], [MinMaxWeightPos]N_SrfMinMaxWeightPosVectors
[Surface::eval_pt_deriv_normal_fast], [PtDerivNormal]N_SrfEvalPtPtDerivNormalFast
[Surface::translate]N_SrfTranslate
[Surface::rotate_at_pt]N_SrfRotateAtPt
[Surface::reverse] / [Surface::reversed]N_SrfReverse (in place / into a new surface; knots by NI_ReverseKnots)
[Surface::surface_type], [SurfaceType], [SurfaceKind]N_SrfType
[Surface::reparam]N_SrfReparam
[Surface::is_closed_smooth], [Surface::is_closed_smooth_flag], _with_fixes formsN_SrfIsClosedSmooth
[Surface::eval_pt_deriv_normal_pole]N_SrfEvalPtPtDerivNormalPole
[Surface::eval_pt_normal_at_pole]N_SrfEvalPtNormalAtPole
[cone_elliptic_ends], [EllipticCone]N_ConeEllipticEnds

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