Skip to content

test(research): a cylinder face whose trim ring passes its point budget is refused, shown on a face built by hand (#1815) - #1961

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1815-cylinder-budget-demo
Nov 14, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1815-cylinder-budget-demo

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Shows, on a cylinder face built by hand, what #1815's cylinder trim budget does: a face whose trim ring would hold more than 20,000 points is refused as cylinder trim budget exceeded. This is the part of #1815 still open after #1823.

Motivation

#1823 bounded a cylinder face's trim ring (CYLINDER_RING_POINT_BUDGET, 20,000 points), and its Measure showed that no real face comes near it. #1815's "done when" asks for the refusal to be shown on a synthetic input when no real file reaches it. #1823 left that out because the tests had no way to build an object graph. They do: ObjectGraph deserializes, and pointers resolve through each object's token when the graph lists no edge.

Changes

  • tests/fuzz_regressions.rs, cylinder_trim_ring_over_its_point_budget_is_refused:
    • a face, its CylSurf, one EdgeLoop and one Edge whose stored interior points alone pass the budget. cylinder_face refuses it as cylinder trim budget exceeded, the error the saved-mesh pass turns into drawing the element without its saved mesh;
    • the same face with two fewer interior points passes the budget's check and is refused later for something else ("too few boundary edges"), so the first refusal is the budget's own.
  • Every point lies at v = 0.5, so refined_curved_edge sees an isoparametric edge and adds nothing: the count is the stored points alone.

Testing

A test only, with no source change, so no Measure. CI's hardening class runs fuzz_regressions, on the i686 overflow-checks job too.

  • tools/check-local.sh: not run locally (no local builds); rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; synthetic values only.

Closes #1815.

…nt budget is refused as such, shown on a face built by hand (#1815)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 01:40
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 14, 2026 01:58
@DrunkOnJava
DrunkOnJava merged commit 0ce6c5d into main Nov 14, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1815-cylinder-budget-demo branch November 14, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Native readers: 32-bit panics on a crafted record length or container count, and two work budgets that do not bound what they should

1 participant