warp.bvh_query_aabb#
- warp.bvh_query_aabb( ) BvhQuery#
Kernel
Construct an axis-aligned bounding box query against a BVH object.
This query can be used to iterate over all bounds inside a BVH. To start a query from a specific node, set
rootto the index of the node. The root can be obtained using thebvh_get_group_root()function when creating a grouped BVH. Whenrootis a valid (>=0) value, the traversal will be confined to the subtree starting from the root. Ifrootis -1 (default), traversal starts at the BVH’s global root. The query will only traverse down from that node, limiting traversal to that subtree.- param id:
The BVH identifier
- param low:
The lower bound of the bounding box in BVH space
- param high:
The upper bound of the bounding box in BVH space
- param root:
The root to begin the query from (optional, default: -1)