solidcore

Units / surface

surface.surface_cache_p2 green

Layer
24
Upstream lines
1,252
Functions
7
Rust module
surface::surface_cache::p2

Status history

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

Source: crates/solidcore/src/surface/surface_cache/p2.rs

Upstream: source/SMLib/src/SmSurfaceCache.cpp

Port-plan notes

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

GREEN, PR #563 on main b65597902: 905 native cases (105 fixture + 800 generated), 905 bit-identical passes, 0 failed, 0 deferred; all 904 main passes retained and the final deferral now passes. Verified by x86_64 CI 39928207576 and full ARM64 audit. Historical review sensitivity detected 751/751 (earlier 721/721). FindTessellationSplits uses the caller Kernel; SmPlane IsSingularity is wired in the Bezier approximation. Earlier dependency wiring included surface.surface_p1/p3/p4/p5/p7/p9, curve.iso_curve and surface_point_solve_p3; formerly deferred groups were 53 face-owned plane/cache calls, 43 singularity/iso-curve calls and subdivision splitting. No co-ports. Seven functions, largest TestAgainstTolerances, SubdivideByBlock, sm_CreateApproximateBezierPatchBlock, sm_CreateBezierPatchBlock; cycle back-edge surface.surface_p1(1); unit-SCC #22 (220 units); 317 upstream test entry points.

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
913
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.extent2d green geom.object green geom.vector3d green nurbs.b_spline_surface_p1 green nurbs.nurbs_srf green surface.surface_cache_p1 green surface.surface_p2 partial

Soft dependencies: curve.curve_p5 partial curve.iso_curve green geom.extent1d green geom.extent3d green geom.pseudo_box green geom.tol green geom.tree green geom.vector2d green nlib.knots green nlib.srf_basic green nlib.srf_nurb green nurbs.b_spline_curve_p1 green nurbs.b_spline_surface_p2 green surface.surface_p9 green

Dependents: query.tess green surface.surface_cache_p3 green

Soft dependents: intersect.surface_intersector_p2 partial intersect.topology_solver_p1 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmPatchBoundaryBoundingPlanes::GetNthBoundingPlaneSmSurfaceCache.cpp:62843[PatchBoundaryBoundingPlanes::nth_bounding_plane], [NthBoundingPlane], [BoundingPlane]
SmSurfaceCache::AddCurvesToCacheSmSurfaceCache.cpp:146935[SurfaceCache::add_curves_to_cache]
SmSurfaceCache::TestAgainstTolerancesSmSurfaceCache.cpp:3461535[SurfaceCache::test_against_tolerances], [ToleranceTest]
SmSurfaceCache::SubdivideByBlockSmSurfaceCache.cpp:4034433[SurfaceCache::subdivide_by_block]
sm_CreateBezierPatchBlockSmSurfaceCache.cpp:479269[create_bezier_patch_block], [BezierPatchBlock]
sm_CreateApproximateBezierPatchBlockSmSurfaceCache.cpp:4867107[create_approximate_bezier_patch_block], [ApproximateBezierPatchBlock]
SmSurfaceCache::~SmSurfaceCacheSmSurfaceCache.cpp:590530Drop (implicit)
Module file-header table (7 rows)
RustUpstream
[PatchBoundaryBoundingPlanes::nth_bounding_plane], [NthBoundingPlane], [BoundingPlane]SmPatchBoundaryBoundingPlanes::GetNthBoundingPlane
[SurfaceCache::add_curves_to_cache]SmSurfaceCache::AddCurvesToCache
[SurfaceCache::test_against_tolerances], [ToleranceTest]SmSurfaceCache::TestAgainstTolerances
[SurfaceCache::subdivide_by_block]SmSurfaceCache::SubdivideByBlock
[create_bezier_patch_block], [BezierPatchBlock]sm_CreateBezierPatchBlock (static)
[create_approximate_bezier_patch_block], [ApproximateBezierPatchBlock]sm_CreateApproximateBezierPatchBlock (static)
Drop (implicit)SmSurfaceCache::~SmSurfaceCache

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