Skip to content

Add hard, bounding-box and duplicate clash queries to IOCoord - #10

Merged
mahach666 merged 1 commit into
mainfrom
codex/iocoord-hard-and-bounds
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/iocoord-hard-and-bounds

Conversation

@mahach666

@mahach666 mahach666 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • Use the existing triangle BVH for new hard clash, box overlap and ordered duplicate-geometry queries.
  • For hard clashes, apply the minimum positive depth to the overlap of the two contacting instances' bounds. Keep zero-depth contacts.
  • Preserve the surface-intersection and clearance APIs and result shapes. The estimated depth follows the NwcIO convention.

Verification

  • Full IOScene solution tests passed on .NET 8 and .NET 10.
  • Tests cover independent instance bounds, tolerance, nested boxes, touching surfaces and duplicate geometry with placement and index order.
  • git diff --check passed.
  • Compared against NwcIO on 400 deterministic box pairs for each of Hard, Conservative and Duplicates. The reported set and signed distances matched in every case. Contact point sampling is independent.

@mahach666
mahach666 merged commit 77ca2dc 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