mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-23 00:42:59 +00:00
916b91e8d0
solidcore's main at c0d3cc0124, rewritten to one commit per same-author run per PR (2,800 commits, author credit kept; tree identical). Full original history: tangency-labs/solidcore archive/full-history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> git-subtree-dir: solidcore git-subtree-mainline:44525da669git-subtree-split:c440e5f892
13 lines
5.7 KiB
TOML
Vendored
13 lines
5.7 KiB
TOML
Vendored
id = "surface.surface_p3"
|
|
upstream = ["source/SMLib/inc/SmSurface.h", "source/SMLib/src/SmSurface.cpp"]
|
|
rust_module = "surface::surface::p3"
|
|
depends_on = ["geom.extent1d", "geom.extent2d", "geom.extent3d", "geom.local_solve_nd", "geom.matrix", "geom.object", "geom.vector2d", "geom.vector3d", "surface.surface_p1", "surface.surface_p2", "surface.surface_p7"]
|
|
soft_depends_on = ["geom.geom_utility_p1", "geom.solution_array", "geom.tol", "nurbs.b_spline_surface_p1", "surface.plane_p1"]
|
|
est_lines = 1794
|
|
layer = 30
|
|
tests = ["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"]
|
|
status = "green"
|
|
claimed_by = ""
|
|
claimed_at = ""
|
|
notes = "GREEN again (2026-10-26, WR-407 opt-in): the fold refusal runs only with Kernel::fixes.cover_refuses_folded_continuation (off by default = pinned SMLib), so surface.surface_p3 cases=2500 passed=2500 failed=0 deferred=0 known_mismatch=0 max_rel_err=0e0 with_values=2500; the 7 known mismatches and their ratchet waivers are removed (plan/findings/surface.surface_p3--cover-refuses-a-folded-continuation--addendum-2026-10-26-opt-in.md). Before that: PARTIAL (2026-10-26, #434: CoverCoincidentSurface refuses a folded continuation, SolidCraft change from tangency-labs/smlib 1b6f5fa): PASS->PARTIAL surface.surface_p3 cases=2500 passed=2493 failed=0 deferred=0 known_mismatch=7 max_rel_err=0e0 with_values=2493 no_values=0 vacuous=0 (was GREEN cases=2500 passed=2500). The 7 generated cases (gen0041, gen1448, gen1514, gen1567, gen2066, gen2303, gen2376) cover a domain whose continuation folds: C++ success=true, the port refuses (the surface's Du x Dv normal turns back between neighbouring samples of the 21 x 21 grid over the domain the merge would use). They are declared divergences (crates/difftest/known_mismatches/surface.surface_p3.toml, plan/findings/surface.surface_p3--cover-refuses-a-folded-continuation.md) and become `deviation(#434)` when difftest has that outcome (#989). The two swept-wall cases of tangency-labs/solidcore#434 merge onto the planar top's extension, which does not fold, so the rule changes no other reported case. 13 fns; largest: SmSurface::CoverCoincidentSurface, SmSurface::GetSingularities, SmSurface::LocalSurfaceSurfaceIntersect, SmFindPSNormalENFO::Evaluate; cycle back-edges (call into later units; stub or co-port): topology.face_p1(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; CO-PORTED in surface.surface_p4 (PR #49): smsurf_IsPointOnNormal -> surface::surface::p4::is_point_on_normal; SmSurfaceEval::EvalNormal -> surface::surface::p4::SurfaceEval::eval_normal; PORTED (PR #52): 11 fns in surface::surface::p3 (SmDropCurveFail::Copy is Clone; smsurf_IsPointOnNormal and SmSurfaceEval::EvalNormal were co-ported in surface.surface_p4), difftest 2500 cases: 2334 compared, 166 deferred (all SmSurface::CoverCoincidentSurface: the plane STEPInversion is wired through surface.surface_p4 (PR #49), but the point solve under it still reaches SmSurface::GlobalPointSolve_1 (UNPORTED(surface.surface_point_solve_p3) in surface::surface::p4); those cases are not yet compared), perturb mode detects all 2334; back-edges wired: SmSurface::EvaluateGeometric and LocalPlaneSurfaceIntersect into intersect.surface_intersector_p1, SmSurface::EvaluateNormalSection into nurbs.b_spline_surface_n_lib_p2 and surface.curve_bounded_surface (with EvaluateGeometric), SmSurface::GetSingularities into surface.trim_srf_cache; SmSurface::LocalSurfaceSolve wired into intersect.surface_intersector_p2; SmFindPSNormalENFO and SmSSSIntersectENFO implement EvalNFunctions on the structs of surface.surface_p1 (as does surface.surface_p4 for SmSSPIntersectENFO and SmSSNormalizeENFO); sm_CrossedSeamOrPole is surface.surface_p1's; FFI safety (review of PR #52): the surface-of-revolution block (kind 3) is accepted only by surface_p3's validators (p4/p7 shims have no such branch: kind index stays 0..=2 there, test kind_3_rejected); the p3 shim throws BadInput (SC_ERR_ARG) when SmSurfOfRevolution::CreateCanonical fails (generator on the axis) instead of dereferencing NULL (test generator_on_axis_is_an_error); report regenerated: 2500 cases, 2334 compared, 166 deferred, perturb 2334/2334 BACK-EDGES INTO surface.surface_p5 (PR #52, after merging surface_p4/#49 and surface_p5/#50): GetSingularities (IsSingularity; ignored() with SM_SS_NONE), the SmFindPSNormalENFO Newton solve of LocalPointSolve_0 (SER -> ?), LocalSurfaceSurfaceIntersect from UV guesses (status ignored), CoverCoincidentSurface (CoverOtherCoincidentSurface takes both surfaces &mut and a &Kernel; topology.edge is_topological takes &mut Brep + &Kernel) and EvaluateNormalSection (sm_FilterSolution, status ignored); IsSingularity/EvaluateNormalAtSingularity take &Kernel; no UNPORTED(surface.surface_p3) stubs remain. surface_p3 itself: 2500 cases, 2334 pass, 166 deferred (surface.surface_point_solve_p3 166). --green 169 units, 0 failed. Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 2500 cases, 2497 pass, 3 deferred (surface.surface_p8 3), 0 failed, max_rel_err 0. Re-run after wiring PR #118 (surface.surface_p8 and its back-edges, GlobalPointSolve_0 included): 2500 cases, 2500 pass, 0 deferred, 0 failed, max_rel_err 0; green. CoverCoincidentSurface's SmFace::RemoveUVTrimCurves (fix/surface-face-handles): Surface::cover_coincident_surface_deferring_trims returns the owner face in CoverCoincident::remove_uv_trim_curves_of for the caller holding the B-rep to run topology::face::p1::remove_uv_trim_curves right after; cover_coincident_surface still returns Unported(topology.face_p1) for a face-owned success. Callers to switch: primitive/primitive_creation/p1/primitives.rs (CreatePrimitive coincident covers)."
|