benilla-re systems structs docs

CMapObj::GatherBoxGroups

function · models · primitive

Address
0x6a5020 · 477 bytes, up to 0x6a51fc
Signature
void __thiscall (CMapObj *this, uint32_t group, uint32_t from, const float *box, void *list, uint32_t limit)
Meaning
Visits one group and floods through its portals to the groups the box reaches
Confidence
verified, proof one
Finding
minimap/interior#portal-flood
Test
models::box_overlap_deltas_difftest

Finding: Portal flood in minimap: interior

0x6a5020(group, from, box, list, limit) visits one group. It stops when the group is not loaded, has flag 0x8 (exterior) or has already been stamped with the current pass. Otherwise it stamps the group and stops when the group does not overlap the box in x and y. The box's top z is the seed group's ceiling, so the top plane of the portal test is that ceiling. If it overlaps, the group emits its tiles and the flood crosses each of its portals to the neighbour group unless the neighbour is none, is the group it came from, or the portal polygon lies wholly outside one of the six planes of the box.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.