Skip to content

BarMesh split: epsilon, stepover, contact angle - #6

Merged
ajlennon merged 1 commit into
mainfrom
feat/barmesh-bar-split
Aug 19, 2026
Merged

BarMesh split: epsilon, stepover, contact angle#6
ajlennon merged 1 commit into
mainfrom
feat/barmesh-bar-split

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Summary

  • Split a Bar only if XY distance > epsilon (0.01 mm default) so refine cannot run forever.
  • Then split if 3D length > stepover (1 mm) or contact-normal angle > a (15°, dot product).
  • InsertNodeIntoBarF inserts a dropped mid-node; parameters are on the UI / draw exports.

Test plan

  • Play: lattice then refine; denser bars on curvature.
  • Headless bake still BAKE_OK strategy=barmesh.

Julian's refine test: no split if XY spacing is already at epsilon; otherwise InsertNodeIntoBarF when 3D length exceeds stepover or the contact-normal angle exceeds a (dot product). All three are UI/export parameters.

Assisted-by: Cursor <cursoragent@cursor.com>
@ajlennon
ajlennon merged commit 5d77fca into main Aug 19, 2026
1 check passed
@ajlennon
ajlennon deleted the feat/barmesh-bar-split branch August 19, 2026 17:52
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