solidcore

Units / nurbs

nurbs.b_spline_surface_n_lib_p1 green

Layer
17
Upstream lines
2,033
Functions
23
Rust module
nurbs::b_spline_surface_n_lib::p1

Status history

Oct 12Nov 25
  1. todo 2,033 lines
  2. partial 2,033 lines
  3. green 2,033 lines

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

Upstream: source/SMLib/src/SmBSplineSurfaceNLib.cpp

Port-plan notes

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

main CI e33985411 (2026-10-23): PASS nurbs.b_spline_surface_n_lib_p1 cases=699 passed=699 failed=0 deferred=0. difftest: 665 cases (65 fixtures + 600 generated), 638 pass bit-identical, 27 deferred (surface.surface_p5: SmSurface::IsSingularity in CreateExtendedSurface; then surface.surface_p7 IsClosed); DropCurve path of sm_CreateNonRationalCurve not diffed (upstream crash, see findings). 23 fns; largest: sm_CreateCoonsSrf, SmBSplineSurface::CreateExtendedSurface, SmBSplineSurface::CreateCoonsPatch, SmBSplineSurface::CreateNSidedPatch; cycle back-edges (call into later units; stub or co-port): surface.surface_p2(4), curve.curve_p2(1), intersect.surface_drop_lib_p3(1), surface.surface_p5(1), surface.surface_p7(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Re-run with surface.surface_p5's back-edges wired (PR #50): cases=665 passed=638 failed=0 deferred=27 max_rel_err=0e0 blocked_by=surface.surface_p3(27). GREEN (PR #52, after merging surface_p4/#49 and surface_p5/#50): GetSingularities wired, 665/665 pass, 0 deferred. UPDATE (2026-11-04): BSplineSurface::create_extended_surface(_dir) deleted with the fitted surface extension; difftest op extend removed (1 fixture, 1 fuzz-corpus entry, generator arm, shim op 1). difftest 701 cases, all pass bit-identical.

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
701
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: geom.extent1d green geom.extent2d green geom.object green geom.vector3d green nlib.crv_basic green nlib.geom green nlib.math green nlib.srf_adv_p3 green nlib.srf_basic green nlib.srf_nurb green nurbs.b_spline_curve_n_lib green nurbs.b_spline_curve_p1 green nurbs.b_spline_surface_p1 green

Soft dependencies: geom.tol green geom.vector2d green nlib.crv_adv_p2 green nlib.crv_nurb green nlib.crv_tool_p2 green nlib.knots green nlib.srf_adv_p1 green nlib.srf_adv_p4 green nlib.srf_adv_p6 green nlib.srf_common green nlib.srf_offset green nlib.srf_tool_p3 green nlib.srf_tool_p4 green

Dependents: blend.fillet_removal green nurbs.b_spline_surface_n_lib_p2 green nurbs.b_spline_surface_p2 green primitive.primitive_creation_p3 green surface.cone_p2 green surface.plane_p1 partial surface.plane_p2 green surface.sphere green surface.surf_of_extrusion_p1 green surface.surf_of_extrusion_p2 green surface.surf_of_revolution_p1 green surface.surf_of_revolution_p2 green surface.surf_of_revolution_p3 green surface.surface_approximate green surface.torus partial

Soft dependents: blend.fillet_custom_solver green blend.fillet_geom_p1 green blend.fillet_geom_p4 partial blend.fillet_standard_solver_p1 green offset.offset_executive_p1 partial offset.offset_geometry_creation partial sweep.api_surfaces green sweep.trans_sweep_geometry green topology.brep_p1 green topology.brep_p3 partial topology.face_p1 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
sm_BuildNlibCurveSmBSplineSurfaceNLib.cpp:5914[build_nlib_curve]
sm_CreateNlibCurveSmBSplineSurfaceNLib.cpp:7915[create_nlib_curve]
sm_CreateNlibSurfaceSmBSplineSurfaceNLib.cpp:10019[create_nlib_surface]
SmBSplineSurface::ApproximateOffsetSurfaceSmBSplineSurfaceNLib.cpp:21270[BSplineSurface::approximate_offset_surface], [BSplineSurface::approximate_offset_surface_with], [OffsetParamType]
sm_CreateNonRationalCurveSmBSplineSurfaceNLib.cpp:290665[create_non_rational_curve]
sm_CreateCoonsSrfSmBSplineSurfaceNLib.cpp:3813434[create_coons_srf], [CoonsWarning]
SmBSplineSurface::CreateCoonsPatchSmBSplineSurfaceNLib.cpp:4296144[BSplineSurface::create_coons_patch], [BSplineSurface::create_coons_patch_on_faces]
SmBSplineSurface::CreateExtendedSurfaceSmBSplineSurfaceNLib.cpp:444813
SmBSplineSurface::CreateExtendedSurfaceSmBSplineSurfaceNLib.cpp:4469382
SmBSplineSurface::JoinSurfaceSmBSplineSurfaceNLib.cpp:488243[BSplineSurface::join_surface]
SmBSplineSurface::CreateNSidedPatchSmBSplineSurfaceNLib.cpp:4935110[BSplineSurface::create_n_sided_patch]
SmBSplineSurface::CreateRuledSurfaceSmBSplineSurfaceNLib.cpp:505654[BSplineSurface::create_ruled_surface]
sm_MakeKnotsSmBSplineSurfaceNLib.cpp:519159[make_knots]
SmBSplineSurface::CreateSweepSurfaceSmBSplineSurfaceNLib.cpp:5752100[BSplineSurface::create_sweep_surface]
SmBSplineSurface::CreateSwungSurfaceSmBSplineSurfaceNLib.cpp:620941[BSplineSurface::create_swung_surface]
SmBSplineSurface::EvaluatePointOnExtendedSurfaceSmBSplineSurfaceNLib.cpp:635637[BSplineSurface::evaluate_point_on_extended_surface]
SmBSplineSurface::ReparameterizeSmBSplineSurfaceNLib.cpp:713133[BSplineSurface::reparameterize]
SmBSplineSurface::ReverseSmBSplineSurfaceNLib.cpp:722339[BSplineSurface::reverse]
sm_CheckTrimBoundariesSmBSplineSurfaceNLib.cpp:734962[check_trim_boundaries]
SmBSplineSurface::ExpandBoundarySpanSmBSplineSurfaceNLib.cpp:790268[BSplineSurface::expand_boundary_span]
sm_check_zero_surface_derivsSmBSplineSurfaceNLib.cpp:798393[check_zero_surface_derivs]
SmBSplineSurface::EvaluateSimpleSmBSplineSurfaceNLib.cpp:860473[BSplineSurface::evaluate_simple], [BSplineSurface::evaluate_simple_first_into]
SmBSplineSurface::EvaluatePointSmBSplineSurfaceNLib.cpp:868465[BSplineSurface::evaluate_point]
Module file-header table (23 rows)
RustUpstream
[build_nlib_curve]sm_BuildNlibCurve (static)
[create_nlib_curve]sm_CreateNlibCurve (static)
[create_nlib_surface]sm_CreateNlibSurface (static)
[BSplineSurface::approximate_offset_surface], [BSplineSurface::approximate_offset_surface_with], [OffsetParamType]ApproximateOffsetSurface
[create_non_rational_curve]sm_CreateNonRationalCurve (static)
[create_coons_srf], [CoonsWarning]sm_CreateCoonsSrf (static)
[BSplineSurface::create_coons_patch], [BSplineSurface::create_coons_patch_on_faces]CreateCoonsPatch
face_side_twist (private)the fork's sm_FaceSideTwist (static)
[BSplineSurface::join_surface]JoinSurface
[BSplineSurface::create_n_sided_patch]CreateNSidedPatch
[BSplineSurface::create_ruled_surface]CreateRuledSurface
[make_knots]sm_MakeKnots (static)
[BSplineSurface::create_sweep_surface]CreateSweepSurface (single section)
[BSplineSurface::create_sweep_surface_with_placements]CreateSweepSurface with the fork's pOptPlacements
[BSplineSurface::create_swung_surface]CreateSwungSurface
[BSplineSurface::evaluate_point_on_extended_surface]EvaluatePointOnExtendedSurface
[BSplineSurface::reparameterize]Reparameterize
[BSplineSurface::reverse]Reverse
[check_trim_boundaries]sm_CheckTrimBoundaries (static)
[BSplineSurface::expand_boundary_span]ExpandBoundarySpan
[check_zero_surface_derivs]sm_check_zero_surface_derivs (static)
[BSplineSurface::evaluate_simple], [BSplineSurface::evaluate_simple_first_into]EvaluateSimple
[BSplineSurface::evaluate_point]EvaluatePoint

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