Skip to content

fix(features): probe concave caps from points on the face - #206

Open
cykaan wants to merge 1 commit into
wrong-nebula:mainfrom
cykaan:fix/185-features-concave
Open

cykaan wants to merge 1 commit into
wrong-nebula:mainfrom
cykaan:fix/185-features-concave

Conversation

@cykaan

@cykaan cykaan commented Dec 5, 2026 •

Copy link
Copy Markdown

Fixes #185.

Cause. The issue's hunch is right. The symmetry check and the wall-thickness rays start at each face's vertex average, and for the U-shaped cap that point lies in the open notch.

Fix. These probes now start at a point on the face: the vertex average for triangles and convex faces, otherwise the centroid of the face's largest triangle. Patch segmentation still uses the vertex average.

Result. The issue's U now reports sym=XZ wall_min=0.500, the same as the shape built by cutting a box.

Test. That U, built with make_extrude_2d_with_holes.

Re-checked on current main (d9d9c22, 2026-12-06): merges cleanly, the full workspace test suite passes with this PR applied (278 tests, 0 failures), and cargo clippy --workspace --all-targets reports no warnings.

This PR is one of 11 independent fixes from the fork cykaan/forma-tr, each based on main (5cecae8) and carrying only its own fix and test. The fork's Turkish glyphs for text3d, its size-first release profile and its new language features (list iteration, conditionals, seeded rand, indexing, textures, lights/cameras) are deliberately not included in any of these PRs; they can be proposed separately as issues.

🤖 Generated with Claude Code

https://claude.ai/code/session_018inpPNqrJ4RQcb5toxiqEE

…la#185)

Symmetry and wall-thickness probes started at each face vertex average,
which for a concave cap (a U) lies in open space. They now start from a
point on the face (the centroid of its largest triangle when the face is
not convex).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inpPNqrJ4RQcb5toxiqEE
@cykaan
cykaan requested a review from wrong-nebula as a code owner December 5, 2026 13:04
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.

features() misses symmetry and reports a wall twice as thick

1 participant