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
- todo 2,033 lines
- partial 2,033 lines
- 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 function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_BuildNlibCurve | SmBSplineSurfaceNLib.cpp:59 | 14 | [build_nlib_curve] |
sm_CreateNlibCurve | SmBSplineSurfaceNLib.cpp:79 | 15 | [create_nlib_curve] |
sm_CreateNlibSurface | SmBSplineSurfaceNLib.cpp:100 | 19 | [create_nlib_surface] |
SmBSplineSurface::ApproximateOffsetSurface | SmBSplineSurfaceNLib.cpp:212 | 70 | [BSplineSurface::approximate_offset_surface], [BSplineSurface::approximate_offset_surface_with], [OffsetParamType] |
sm_CreateNonRationalCurve | SmBSplineSurfaceNLib.cpp:2906 | 65 | [create_non_rational_curve] |
sm_CreateCoonsSrf | SmBSplineSurfaceNLib.cpp:3813 | 434 | [create_coons_srf], [CoonsWarning] |
SmBSplineSurface::CreateCoonsPatch | SmBSplineSurfaceNLib.cpp:4296 | 144 | [BSplineSurface::create_coons_patch], [BSplineSurface::create_coons_patch_on_faces] |
SmBSplineSurface::CreateExtendedSurface | SmBSplineSurfaceNLib.cpp:4448 | 13 | |
SmBSplineSurface::CreateExtendedSurface | SmBSplineSurfaceNLib.cpp:4469 | 382 | |
SmBSplineSurface::JoinSurface | SmBSplineSurfaceNLib.cpp:4882 | 43 | [BSplineSurface::join_surface] |
SmBSplineSurface::CreateNSidedPatch | SmBSplineSurfaceNLib.cpp:4935 | 110 | [BSplineSurface::create_n_sided_patch] |
SmBSplineSurface::CreateRuledSurface | SmBSplineSurfaceNLib.cpp:5056 | 54 | [BSplineSurface::create_ruled_surface] |
sm_MakeKnots | SmBSplineSurfaceNLib.cpp:5191 | 59 | [make_knots] |
SmBSplineSurface::CreateSweepSurface | SmBSplineSurfaceNLib.cpp:5752 | 100 | [BSplineSurface::create_sweep_surface] |
SmBSplineSurface::CreateSwungSurface | SmBSplineSurfaceNLib.cpp:6209 | 41 | [BSplineSurface::create_swung_surface] |
SmBSplineSurface::EvaluatePointOnExtendedSurface | SmBSplineSurfaceNLib.cpp:6356 | 37 | [BSplineSurface::evaluate_point_on_extended_surface] |
SmBSplineSurface::Reparameterize | SmBSplineSurfaceNLib.cpp:7131 | 33 | [BSplineSurface::reparameterize] |
SmBSplineSurface::Reverse | SmBSplineSurfaceNLib.cpp:7223 | 39 | [BSplineSurface::reverse] |
sm_CheckTrimBoundaries | SmBSplineSurfaceNLib.cpp:7349 | 62 | [check_trim_boundaries] |
SmBSplineSurface::ExpandBoundarySpan | SmBSplineSurfaceNLib.cpp:7902 | 68 | [BSplineSurface::expand_boundary_span] |
sm_check_zero_surface_derivs | SmBSplineSurfaceNLib.cpp:7983 | 93 | [check_zero_surface_derivs] |
SmBSplineSurface::EvaluateSimple | SmBSplineSurfaceNLib.cpp:8604 | 73 | [BSplineSurface::evaluate_simple], [BSplineSurface::evaluate_simple_first_into] |
SmBSplineSurface::EvaluatePoint | SmBSplineSurfaceNLib.cpp:8684 | 65 | [BSplineSurface::evaluate_point] |
Module file-header table (23 rows)
| Rust | Upstream |
|---|---|
[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