AaBspIntersectLeaf
function · models · primitive
- Address
0x6bc700· 210 bytes, up to0x6bc7d1- Meaning
- Intersects a segment with a BSP leaf's faces, keeping the closest hit
- Confidence
- inferred
- Finding
- models/wmo#bsp-segment-descent
- Test
models::aabsp_leaf_tscale_difftest,models::aabsp_segment_clip_difftest
Finding: BSP segment descent in models: map objects
A group's BSP node is 16 bytes: a 16-bit flags word (0x4 leaf, low two bits the split axis), the
negative and positive children (+0x2, +0x4, 0xffff for none), the face count +0x6, the first
face reference +0x8, and the split distance +0xc. A segment descends with the node's box: it
stops when both ends lie more than 0.01 beyond the box on the split axis; with f0 and f1 the
ends' distances from the split, it visits both children whole when either is within 0.01, one
child when both are beyond 0.01 on one side, and otherwise splits at t = f0/(f0 − f1), the
start's side first. A leaf tests its cached mesh, else each face.
The derivation is in the doc.
Callers 1
- AaBspIntersectSegmentNode models
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.