Wave 425/509: Motion interference: a volume it could not work out is not measured, never a sampled guess

1 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- b6d3c8b80 jyviko: Motion interference: a volume it could not work out is not measured, never a sampled guess

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-30 07:02:41 -04:00
parent db9897fda7
commit f80b3ebc1f
3 changed files with 67 additions and 45 deletions
+5 -4
View File
@@ -323,10 +323,11 @@ so they are as smooth as the samples are dense (up to 1000, one per step by defa
unwrapped, so a joint that turns on past half a turn keeps counting.
`motion.interference {study, occurrences?, against?, contact_sets?, samples?}` answers each
colliding pair with its `first_step`, `last_step`, the `steps` ranges where they overlap, the
most volume they share at a sample (`volume_mm3`, worked out exactly from the bodies; null when
it is not cheap to work out at every sample they overlap), the first sample sharing that much
(`deepest_step`) and how far into each other they reach (`depth_mm`, an estimate from points of
the bodies' contact meshes). It plays the study as `motion.play` does, but
most volume they share at a sample (`volume_mm3`, worked out exactly from the bodies), the first
sample sharing that much (`deepest_step`) and how far into each other they reach (`depth_mm`, an
estimate from points of the bodies' contact meshes). When the volume could not be worked out at
every sample they overlap (more than 16 colliding pairs, or past the check's 256 body
intersections), `volume_mm3` and `deepest_step` are null and `not_measured` says why. It plays the study as `motion.play` does, but
contact sets don't stop it, and parts are tested at the samples only: a part that passes right
through another between two samples is missed. Parts are told apart by occurrence, as contact
sets tell them apart: an occurrence inside a sub-assembly placed twice is one part, so its two