{"repo":"gkjohnson/three-mesh-bvh","free":true,"listed":false,"github":"https://github.com/gkjohnson/three-mesh-bvh","clone":"git clone https://github.com/gkjohnson/three-mesh-bvh.git","description":"A BVH implementation to speed up raycasting and enable spatial queries against three.js meshes.","language":"JavaScript","stars":3451,"topics":["graphics","raycast","tree","bounds","threejs","three-js","bounds-hierarchy","performance","geometry","mesh"],"license":"MIT","category":"game-templates","readme_excerpt":"three-mesh-bvh A Bounding Volume Hierarchy (BVH) implementation to speed up raycasting and enable spatial queries against three.js meshes. See the associated Wikipedia article for more information on bounding volume hierarchies and how they work. Casting 500 rays against an 80,000 polygon model at 60fps! Examples Raycasting Skinned geometry Point cloud intersection Line intersection Shape intersection Geometry edge intersection SDF generation WebWorker generation BVH options inspector BatchedMesh Raycasting Tools Sculpting Distance comparison Triangle painting Lasso selection Clipped edges Geometry voxelization Games Sphere physics collision Player movement Path Tracing Simple GPU Path Tracing Lambert GPU Path Tracing CPU Path Tracing Gem Refraction Path Tracing Object Hierarchy BVH Accelerated Scene Raycasting Skinned Meshes Frustum Culling External Projects three-gpu-pathtracer three-bvh-csg three-edge-projection Use Using pre-made functions Or manually building the BVH And then raycasting Additional Geometry BVHs In addition to MeshBVH for triangle meshes, the library provides specialized BVH implementations for other geometry types: - PointsBVH - For THREE.Points geometries - LineBVH - For THREE.Line geometries - LineLoopBVH - For THREE.LineLoop geometries - LineSegmentsBVH - For THREE.LineSegments geometries These can be used with the extension functions by passing a type option into \"computeBoundsTree\" or constructing them explicitly: Each BVH type implements a core API","default_branch":null,"files":null,"tree":[],"storefront":"/r/gkjohnson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gkjohnson/three-mesh-bvh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}