Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/agargaro/bvh.js

Dynamic BVH implementation based on Erin Catto's paper and three-mesh-bvh (WIP)
https://github.com/agargaro/bvh.js

3d acceleration acceleration-data-structures bounds bounds-hierarchy bvh graphics intersection performance

Last synced: 3 months ago
JSON representation

Dynamic BVH implementation based on Erin Catto's paper and three-mesh-bvh (WIP)

Awesome Lists containing this project

README

        

# Dynamic BVH

Work in progress... will be released soon :)

Live example: https://stackblitz.com/edit/three-ezinstancedmesh2-dynamic-bvh?file=index.ts

Create a BVH from a AABB array. You can set whetever value to each node.

Build method: top-down or insertion one by one.

## Implemented API:

createFromArray

insert

insertRange

move

delete

clear

traverse

rayIntersections

frustumCulling

frustumCullingLOD

closestPointToPoint

intersectsBox

intersectsSphere

intersectsRay

isNodeIntersected

## TODO:

traverseByScore

intersectsRayFirst

intersectsBVH

closestPointToGeometry

getAllCollision

getNearestObject

experiment rotation with N leaves and max depth

## References

- [three-mesh-bvh](https://github.com/gkjohnson/three-mesh-bvh)
- [ErinCatto_DynamicBVH](https://box2d.org/files/ErinCatto_DynamicBVH_Full.pdf)