warp.bvh_query_ray#
- warp.bvh_query_ray( ) BvhQuery#
Kernel
Construct a ray query against a BVH object.
This query can be used to iterate over all bounds that intersect the ray. 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 start:
The start of the ray in BVH space
- param dir:
The direction of the ray in BVH space (should be normalized)
- param root:
The root to begin the query from (optional, default: -1)