solidcore

Units / surface

surface.surface_p6 green

Layer
29
Upstream lines
2,150
Functions
8
Rust module
surface::surface::p6

Status history

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

Source: crates/solidcore/src/surface/surface/p6.rs

Upstream: source/SMLib/src/SmSurface.cpp

Port-plan notes

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

main CI e33985411 (2026-10-23): PASS surface.surface_p6 cases=2103 passed=2103 failed=0 deferred=0. PARTIAL: difftest 2099 cases (99 fixture: CalculateContinuities and CreateNaturalUVTrimCurves on Surface.sms / DropCurveSurface.sms / offset_nurb.sms, planes and cones/cylinders of revolution (also true cones with their apex on the axis), curve-bounded surfaces; IdenticalSolutions on plane pairs; sm_SCLocalSolve boundary curve solves; GetSampleValues input checks; disjoint coincidence boxes; point range solutions + 2000 generated over B-spline (poles, creases, herringbone kinks, rational, tiny/huge scales), plane, revolution and curve-bounded surfaces, B-spline and SmLine curves), 1834 pass bit-identical (max_rel_err 0), 265 deferred after merging surface_p4 and surface_p5 (surface.surface_p3 124, surface.surface_point_solve_p3 141; formerly surface_p4/surface_p5 stubs: DropPoint, LocalPointSolve, GlobalPointSolve, IsSingularity, SmCSIntersectENFO::Evaluate, sm_SpLocalSolve, LocalCurveSolve's SmCSNormalizeENFO); --perturb SENSITIVE; back-edges wired: LocalCurveIntersect (surface.surface_p9), SmSSGlobalSolver::IdenticalSolutions (surface.surface_p7), CreateNaturalUVTrimCurves (nurbs.b_spline_surface_p2, surface.plane_p1), CalculateContinuities (surface.surface_cache_p3, curve.iso_curve: now green); intersect.surface_tracer's DoTrace now runs on the built cache; upstream UB-100 (GetSampleValues NULL tangent reference) refused by the shim. 8 fns; largest: SmSurface::SimpleCoincidenceChecker, SmDerivSurfDefinition::GetSampleValues, sm_SCLocalSolve, SmSurface::ClassifyIntersectingRangeSolution; cycle back-edges (call into later units; stub or co-port): surface.surface_p1(5); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Re-run (PR #52, after merging surface_p4/#49 and surface_p5/#50): 2099 cases, 1939 pass, 160 deferred (surface.surface_point_solve_p3 141, curve.iso_curve 19); the shim now runs a verbatim sm_SpLocalSolve inside sm_SCLocalSolve (was a -2 stop); --perturb SENSITIVE 1939/1939. Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 2099 cases, 2098 pass, 1 deferred (surface.surface_p8 1), 0 failed, max_rel_err 0. Re-run after wiring PR #118 (surface.surface_p8 and its back-edges, GlobalPointSolve_0 included): 2099 cases, 2099 pass, 0 deferred, 0 failed, max_rel_err 0; green.

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,104
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: curve.curve_p2 green geom.axis2_placement green geom.extent1d green geom.extent2d green geom.extent3d green geom.global_solver green geom.local_solve_nd green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green surface.surface_p2 partial surface.surface_p4 green surface.surface_p5 green surface.surface_p7 green

Soft dependencies: curve.curve_p3 partial curve.curve_p4 green curve.curve_p6 green curve.iso_curve green curve.line green nurbs.b_spline_curve_p2 green

Dependents: surface.surface_assert_valid green surface.surface_p11 green surface.surface_p8 green

Soft dependents: blend.fillet_corner_p1 green blend.fillet_solver_p1 green blend.fillet_solver_p3 green boolean.topology_intersector_p2 green intersect.curve_class_p2 green intersect.curve_class_p8 green surface.surface_p10 green sweep.rotational_sweep_geometry green topology.brep_p8 green topology.trimming_tools green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmDerivSurfDefinition::GetSampleValuesSmSurface.cpp:2941346[DerivSurfDefinition::sample_values], [SampleOptions], [DerivSampleValues]
sm_SCLocalSolveSmSurface.cpp:4812318[sc_local_solve], [ScLocalSolveNodes]
SmSurface::CalculateContinuitiesSmSurface.cpp:6168250[Surface::calculate_continuities]
SmSurface::CreateNaturalUVTrimCurvesSmSurface.cpp:9048232[Surface::create_natural_uv_trim_curves], [NaturalUvTrimCurves]
SmSSGlobalSolver::IdenticalSolutionsSmSurface.cpp:21522137[SsGlobalSolver::solutions_identical]
SmSurface::LocalCurveIntersectSmSurface.cpp:24746246[Surface::local_curve_intersect], [CurveIntersection]
SmSurface::SimpleCoincidenceCheckerSmSurface.cpp:29227360[Surface::simple_coincidence_checker], [Surface::simple_coincidence_checker_with_context], [Surface::simple_coincidence_checker_face_tested]
SmSurface::ClassifyIntersectingRangeSolutionSmSurface.cpp:30667261[Surface::classify_intersecting_range_solution], [RangeTangentPoint]
Module file-header table (9 rows)
RustUpstream
[Surface::calculate_continuities]SmSurface::CalculateContinuities (virtual; no surface kind overrides it)
[Surface::continuities], [SurfaceContinuities]not upstream: the continuity arrays SmSurfaceCache::BuildTreeBase stores, as a memo on the surface
[Surface::create_natural_uv_trim_curves], [NaturalUvTrimCurves]SmSurface::CreateNaturalUVTrimCurves
[DerivSurfDefinition::sample_values], [SampleOptions], [DerivSampleValues]SmDerivSurfDefinition::GetSampleValues (from a surface boundary curve)
[Surface::local_curve_intersect], [CurveIntersection]SmSurface::LocalCurveIntersect (virtual; not overridden)
[Surface::simple_coincidence_checker], [Surface::simple_coincidence_checker_with_context], [Surface::simple_coincidence_checker_face_tested]SmSurface::SimpleCoincidenceChecker (virtual; not overridden)
[Surface::classify_intersecting_range_solution], [RangeTangentPoint]SmSurface::ClassifyIntersectingRangeSolution
[SsGlobalSolver::solutions_identical]SmSSGlobalSolver::IdenticalSolutions
[sc_local_solve], [ScLocalSolveNodes]sm_SCLocalSolve (static)

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