Skip to content

Radius normals, debug flat mesh, fix tilted-edge drop - #12

Merged
ajlennon merged 1 commit into
mainfrom
fix/normals-r-debug-flat-edge
Aug 20, 2026
Merged

Radius normals, debug flat mesh, fix tilted-edge drop#12
ajlennon merged 1 commit into
mainfrom
fix/normals-r-debug-flat-edge

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Summary

  • Contact normals drawn from mesh contact to cutter centre (length = tool radius).
  • Optional Debug flat mesh (2 tris) — same AABB footprint, flat top plate — to isolate dropcutter failures.
  • Correct ball↔tilted-edge contact (perpendicular + |CL−pt|=R); XY-only edge drop was causing fall-through on slopes.

Test plan

  • test_contact.gd includes tilted-edge perpendicular check
  • Pull main: normals should reach CL; toggle debug flat mesh and rebuild
  • Compare fall-through glitches on eartip vs flat debug mesh

Assisted-by: Cursor (Composer)

XY-only edge contact under-estimated CL on slopes (fall-through). Normals
now span mesh contact to cutter centre (length R). Optional 2-tri bbox mesh
for dropcutter debugging.

Assisted-by: Cursor <cursoragent@cursor.com>
@ajlennon
ajlennon merged commit 1fd06f9 into main Aug 20, 2026
1 check passed
@ajlennon
ajlennon deleted the fix/normals-r-debug-flat-edge branch August 20, 2026 14:56
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.

1 participant