Releases: gkjohnson/three-mesh-bvh
Releases · gkjohnson/three-mesh-bvh
v0.7.2
v0.7.1
Fixed
- Minor case where outside bounds did not have floating point epsilon accounted for which could have resulted in missed intersections at the very edge of the bounds.
- The
MeshBVHHelper( mesh, depth )
constructor not working as expected. - The
validateBounds
function not accounting for the use of the "indirect" option.
Added
- Added new "ParallelMeshBVHWorker" that parallelizes MeshBVH generation across multiple WebWorkers. Falls back to a single threaded approach if SharedArrayBuffer is not supported.
v0.7.0
Changed
MeshBVHVisualizer
has been deprecated and renamedMeshBVHHelper
to align with three.js' conventions.MeshBVHHelper
constructor now optionally takes a bvh.- Organization of shader GLSL snippets. They are now grouped into the
BVHSShaderGLSL
object. Backwards compatible glsl snippets are provided for now but it's recommended to use the new location.
Fixed
MeshBVHHelper
will now display correctly regardless of parent in hierarchy.MeshBVHHelper.copy
now correctly copies opacity, color.
v0.6.8
v0.6.7
v0.6.6
v0.6.5
v0.6.4
Added
- An experimental "indirect" option to support an indirect triangle sorting for the BVH structure so the geometry index is not adjusted or implicitly generated.
Fixed
- Fixed estimateMemoryInBytes not testing for SharedArrayBuffers resulting in a smaller memory footprint.
- Fixed bug in "intersectsGeometry" function.
Removed
- Removed long deprecated shapecast code path using old function signature.
- Removed long deprecated serialization code path using old function signature.
- Removed long deprecated "terminate" function from web worker class.