warp.tile_mesh_query_aabb_next#

warp.tile_mesh_query_aabb_next(
query: MeshQueryAABBTiled,
) Tile[int32, tuple[int]]#
  • Kernel: true
  • Python: false
  • Differentiable: false

Advance a thread-block parallel mesh AABB query and return the next batch of results as a tile.

Every thread in the block must call this on each loop iteration. Guard the traversal loop with tile_query_valid() and test each returned index for >= 0.

Parameters:

query – The query to advance, from tile_mesh_query_aabb()

Returns:

A register tile of shape (block_dim,) and dtype int holding one face index per thread: the index of an overlapping face, i.e. the triangle built from indices[3 * face] through indices[3 * face + 2] of the warp.Mesh, or a negative value when that thread has no result.

See tile_mesh_query_aabb() for a usage example.