Skip to content

Find surface clearances in IOCoord - #9

Merged
mahach666 merged 1 commit into
mainfrom
codex/iocoord-surface-clearance
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/iocoord-surface-clearance

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Changes

  • Add SceneClash.FindSurfaceClearances over placed IOScene triangle meshes. Return the shortest gap and its midpoint for each selected pair within the inclusive limit in metres.
  • Reuse the intersection BVH, preserve existing intersection output, and keep both engine packages and their CLI commands on the existing paths.
  • Cover point-to-face and edge-to-edge minima, placed geometry, the exact cutoff, zero and invalid limits.

Verification

  • 239 scene and 23 tools tests passed on .NET 8 and .NET 10.
  • A local deterministic comparison against NwcIO's mesh distance matched 4,000 placed triangle pairs within 1e-8 m, with no NwcIO dependency in IOCoord.
  • Solution packing and git diff --check passed.

The new query measures surface clearance. Depth and closed-solid containment remain separate from this query.

@mahach666
mahach666 merged commit 6858f2d into main Nov 18, 2026
2 checks passed
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