BVH3D

open class BVH3D<T>(val allowUpdateObjects: Boolean = true)

A Bounding Volume Hierarchy implementation for 3D. It uses AABB3D to describe volumes and MRay3D for raycasting.

Constructors

Link copied to clipboard
constructor(allowUpdateObjects: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
val bvh: BVH<T>

Functions

Link copied to clipboard
fun debug()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun insertOrUpdate(rect: AABB3D, obj: T)
Link copied to clipboard
fun intersect(ray: Ray3F, return_array: FastArrayList<BVH.IntersectResult<T>> = fastArrayListOf()): FastArrayList<BVH.IntersectResult<T>>
Link copied to clipboard
fun intersectRay(ray: Ray3F, rect: AABB3D? = null): BVHRect?
Link copied to clipboard
fun remove(obj: T)
fun remove(rect: AABB3D, obj: T? = null): FastArrayList<BVH.Node<T>>
Link copied to clipboard
fun search(rect: AABB3D, return_array: FastArrayList<BVH.Node<T>> = fastArrayListOf()): FastArrayList<BVH.Node<T>>