Skip to content

Measure cell planar residual on cutter CL, not contact points - #20

Merged
ajlennon merged 1 commit into
mainfrom
fix/planar-tol-cl-points
Aug 24, 2026
Merged

Measure cell planar residual on cutter CL, not contact points#20
ajlennon merged 1 commit into
mainfrom
fix/planar-tol-cl-points

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Summary

  • Rank/split cells using planar residual of cutter CL (node.p) vs avg contact-normal plane — not contact_point (Julian CNC 162: valley cells between humps looked warped but scored in tolerance).
  • Separate Planar tolerance (mm) UI control (Julian 154); tightening applies on the next “Subdivide next N” without rebake.
  • Headless regression tools/test_planar_residual.gd + CI step.

Test plan

  • Pull branch; bake R=5 / stepover=6 on the humps mesh
  • Subdivide next N cells — valley bridge cells should split (not “no more out of tolerance”)
  • Tighten Planar tolerance and subdivide again without rebake
  • Debug folded 2-tris still subdivides across the dihedral
  • CI godot-headless green (planar residual included)

Assisted-by: Cursor

Valley cells between humps looked non-planar in the lattice but scored in
tolerance because contact_point residual stayed flat. Add a separate planar
tol control and a headless regression for the CL vs contact case.

Assisted-by: Cursor <cursoragent@cursor.com>
@ajlennon
ajlennon merged commit 70089a7 into main Aug 24, 2026
1 check passed
@ajlennon
ajlennon deleted the fix/planar-tol-cl-points branch August 24, 2026 14:36
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