Skip to content

Extract BarMesh subdiv conditions into subdiv.gd - #16

Merged
ajlennon merged 5 commits into
mainfrom
feat/subdiv-conditions-module
Aug 22, 2026
Merged

Extract BarMesh subdiv conditions into subdiv.gd#16
ajlennon merged 5 commits into
mainfrom
feat/subdiv-conditions-module

Conversation

@ajlennon

Copy link
Copy Markdown
Member

Summary

  • New barmesh/subdiv.gd: shared ε / stepover / a params, bar_needs_split, stub cell_needs_split, and XY insertion (XY_MIDPOINT default + XY_PLANE_INTERSECT guess).
  • Topology (InsertNodeIntoBarF) stays in barmesh.gd; refine loop in draw.gd calls the module.
  • Per Julian CNC 123: location matters for efficiency; plane-intersect path is ready to switch on once we validate.

Test plan

  • Local Docker: test_contactCONTACT_OK
  • Local Docker: test_drop_qualityDROP_QUALITY_OK
  • CI headless green
  • Editor bake still refines bars (midpoint unchanged behaviour)

Assisted-by: Cursor

Julian wants predicates and insertion placement separate from BarMesh topology; midpoint bisection stays default with an optional plane-intersect XY guess.

Assisted-by: Cursor <cursoragent@cursor.com>
Split on wide contact-normal span or non-coplanar contact points; pick opposite-side pairs that avoid colinearity and slivers.

Assisted-by: Cursor <cursoragent@cursor.com>
Assisted-by: Cursor <cursoragent@cursor.com>
Assisted-by: Cursor <cursoragent@cursor.com>
Assisted-by: Cursor <cursoragent@cursor.com>
@ajlennon
ajlennon merged commit d04d638 into main Aug 22, 2026
1 check passed
@ajlennon
ajlennon deleted the feat/subdiv-conditions-module branch August 22, 2026 09:42
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