Repository navigation
solidcore: retire analytic_corner_failure_is_false (a failed analytic corner surface falls back to the Coons patch) - #16514
Conversation
…labs#14246) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
Each flag's fixed path becomes the only path: the field, SolidCraft's preset line, the fixes.json entry, the goldens name map entry, the flag-off branches and the tests' flag-off halves are removed, with an addendum per record in plan/upstream-issues. Retired: fillet_3x2_tangent_side_edge_roles, fillet_corner_ball_center_from_axes, fillet_corner_ball_patch, fillet_corner_variable_radius_rail_on_opposite_fillet, fillet_nx1_end_rib_global_merge, fillet_nx1_tangent_corner_edge, fillet_refuse_mixed_corner_crossing_rails, fillet_round_ends_at_tangent_continuation, fillet_run_on_past_far_end_only, fillet_section_end_trim_at_creases, fillet_split_edge_keeps_near_half, glue_vertices_joins_every_region, temporary_radius_setup_errors, offset_missing_surface_fails, offset_updates_result_tolerances, offset_walls_touch_refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
Part of tangency-labs#14246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
MakeAnalyticCornerSurface's SER / NER exits add no surface; upstream returns their status as an SmBoolean that CreateCornerPatch reads as TRUE, so the corner got neither an analytic surface nor the Coons patch. The fixed reading (FALSE, so the caller builds the Coons patch) is now the only path. Removed: the UpstreamFixes field, SolidCraft's preset line, the fixes.json and SolidCraft-preset list entries, the flag-off branch and the unit tests' flag-off halves. The made-surface test, which compared off to on, now checks the chamfer plane against the plane through the corner's three vertices. Part of tangency-labs#14246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
15 rows move, status only, each proven in the PR's table: - blend.fillet_corner_p2 corner_analytic_13/43/70/84/85/87/90: MakeAnalyticCornerSurface 1 -> 0. Each row has surfaces [0]: no surface was made, so FALSE is the answer by the function's contract. - blend.fillet_corner_p3 gen0060/0089/0104/0145/0170/0189/0282/0326: CreateCornerPatch 0 -> 1006. Each corner has a fillet edge with no 3D curve in its input model, so no Coons patch can be bounded; before, the corner reported success with no surface and no face. Part of tangency-labs#14246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
The failing-status test now also pins the inner exit's upstream status (the SER arm), and a new test runs CreateCornerPatch after the exit on a curveless corner and on a chamfer whose interpolating arc has no original face: the Coons patch refuses with SM_ERR_NULL_POINTER (a missing boundary curve) and leaves no surface or face, where upstream reported success. Part of tangency-labs#14246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
…corner_p3 rows A unit test regenerates gen0060/0089/0104/0145/0170/0189/0282/0326 from their seeds and asserts each corner has an edge with no 3D curve in its input model: the premise of their 0 -> 1006 move, now reproducible. Part of tangency-labs#14246. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
|
Gate at 228b589 ( Written by Claude Code (Anthropic) on behalf of @brett19. |
Conflict in crates/smlib/src/core.rs: main retired boolean2d_plane_covers_far_faces, so its preset line goes; this branch's removal of the analytic_corner_failure_is_false line is kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MNXLXhx1aCDM9CwvrWhzzR
d179b61
Retires the
UpstreamFixesflaganalytic_corner_failure_is_false(WR-254). UpstreamSmFilletCorner::MakeAnalyticCornerSurfacereturns its failingSER/NERstatus as anSmBoolean, andCreateCornerPatchreads that as TRUE ("an analytic surface was made") although none was added. So the corner got no Coons patch either, andCreateCornerPatchreported success with no corner face. The fixed reading becomes the only path: a failed analytic surface reads FALSE, so the caller builds the Coons patch, or reports why it can't. SolidCraft's preset already has the flag on.Part of #14246
Was stacked on #16433 (merged; its edits to the shared flag lists overlap). This PR's own change is the commits after #16433's head
bf7f83eda:fbca20f08(code, list entries, unit tests' flag-off halves, addendum),fd39ac11c(the one expectations commit: 15 golden rows), then two test-only commits from review:7c131aded(the corner patch after a failing analytic exit; the inner SER status pinned) and228b589cc(the p3 rows' curveless-edge premise, reproducible).Changes a default: no
SolidCraft's preset already has the flag on; the result SolidCraft ships does not change.
Test change: the unit tests' flag-off halves tested the retired upstream path and are removed (
analytic_corner_surface_reads_a_failing_status_as_truebecomes..._as_false, the flag-on half of the old..._failure_is_false_with_the_fix;..._keeps_the_false_controlsand..._keeps_invalid_inputlose their flag-off loop).analytic_corner_surface_failure_flag_does_not_change_a_made_surfacecompared flag off to flag on; it becomesanalytic_corner_surface_makes_the_chamfer_plane, which checks the plane against the closed form (signed distance from the plane through the corner's three vertices, ≤ 1e-12 × scale, at three UV points). 15 golden rows move, each proven below.Moved golden rows (15): before, after, proof
Measured on server2 at
fbca20f08withgoldens --unit blend.fillet_corner_p2 --unit blend.fillet_corner_p3 --goldens: exactly these 15 rows change, each with 1 difference (thestatusint); every other value of each row (model export, corner members,surfaces) is identical. The error message behind each status (the reasons quoted below) came from a scratch diagnostic that was not committed. The p3 premise (a corner edge with no 3D curve in the input model) is pinned by the committed goldens testblend_fillet_corner_p3::tests::analytic_exit_cases_have_a_curveless_corner_edge, which regenerates the 8 cases from their seeds. Reproduce:cargo test --profile goldens -p goldens --lib analytic_exit_cases_have_a_curveless_corner_edge.blend.fillet_corner_p2(MakeAnalyticCornerSurface'sSmBoolean)corner_analytic_13surfaces: [0]in the same row: no surface was made. The function returns whether it made an analytic surface, so FALSE. Exit:SM_ERR_NULL_POINTER, interpolating edge without its original facecorner_analytic_43SM_ERR, a corner edge's curve is not a B-splinecorner_analytic_70SM_ERR_NULL_POINTER, no original facecorner_analytic_84SM_ERR_NULL_POINTER, no original facecorner_analytic_85SM_ERR_NULL_POINTER, no original facecorner_analytic_87SM_ERR_NULL_POINTER, no original facecorner_analytic_90SM_ERR_NULL_POINTER, no original faceWhy the old figure was wrong: it was upstream's
SmStatuscast toSmBoolean(WR-254). Cross-check over the whole unit: after the change, everyanalyticrow hasstatus == (surfaces > 0)(50 rows 1/1, 28 rows 0/0). Before, these 7 were the only rows with status 1 and no surface.blend.fillet_corner_p3(CreateCornerPatch, directly or throughCalcCornerGeom)gen0060curvein the case JSON). A Coons patch is bounded by its sides' curves, so it can't be built.CreateCornerBlendreturnsSM_ERR_NULL_POINTERfor a null boundary curve; the port reportsMissing("a boundary curve"), 1006gen0089gen0104Missing("the corner edge use's fillet geometry"), 1006gen0145gen0170gen0189gen0282gen0326Why the old figure was wrong: with the analytic exit read as TRUE,
CreateCornerPatchskipped the patch.MakeFaceBrepthen returned at once on an empty surface list, and the corner reported success (0) withsurfaces: [0]and no corner face: a hole reported as a built corner. The new status is a refusal whose cause is visible in the input: a missing curve or a missing fillet geometry.After a failing analytic exit: what the Coons path does
corner_patch_after_a_failing_analytic_exit_refuses_without_a_boundary_curve(p2 tests) runsCreateCornerPatchafter the exit on two corners. One is curveless. The other is a chamfer whose interpolating arc has no original face: its NER exit comes after the arc's curve was deleted for recomputation, which the test asserts. Both refuse withMissing("a boundary curve")(1006), with no surface and no face. Without this PR they returnedOk(()), so the test fails on main's flag-off path.analytic_corner_surface_reads_a_failing_status_as_falsealso pins the inner exit's status (SM_ERR), so it exercises the SER→FALSE arm.A Coons face built after such an exit (surfaces = 1) was not reached. ARGUED from the code (not asserted): every upstream-status exit of
MakeAnalyticCornerSurfacethat I found leaves a side without a 3D B-spline curve. In the first loop that is a missing curve or a curve of none of the B-spline kinds. In the chamfer recompute it is the edge whose curve was set toNonebefore its original face, fillet geometry or intersection was read. The one exception I found is a failure inset_edgeuse_uv_curveafter a new curve was set, and no fixture reaches it. The fix's observable effect is therefore a refusal in place of a reported success with a hole, which is what all 15 rows show.Certificate checklist (§7)
analytic_corner_surface_keeps_invalid_input(the port's ownInvalidInputstill propagates),analytic_corner_surface_makes_the_chamfer_plane(a made surface is still TRUE), and the corner-patch refusal test above (fails on main's flag-off path).Overlap check (all open PRs, any author, drafts included)
Method: every open PR's file list (GraphQL, files over 100 checked by diff) intersected with the flag's read-site and list files (
fillet_corner/p2.rs,crates/smlib/src/core.rs,fixes.json,issue_2260_gn_pipe_refined_range_end.rs, goldenssolidcraft.rs;kernel.rsleft out, since every flag PR touches it). The diff of each overlapping PR, and of each PR over 100 files, was grepped for the flag name andmake_analytic_corner_surface_with.gh pr list --searchwas run for the flag name and WR-254.fillet_corner/p2.rs(adjacent hunk inmake_analytic_corner_surface_with),core.rs🤖 Generated with Claude Code
https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
Summary by CodeRabbit