All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
generateAsync
function in the/extra
folder to help generate BVHs asynchronously with WebWorkers.
- MeshBVH.serialize and deserialize functions so the bvh can be computed and transferred from a webworker.
lazyGeneration
(defaults to true) option for faster tree initialization.- Support for a buffer-packed tree if
lazyGeneration
is false or a tree has been deserialized for a more smaller memory footprint.
- CENTER tree computation to improve raycast performance and create more balanced trees.
- Uglify warning for inline defined functions.
- Changed three.js peer dependency version from ^ to >= to prevent warnings.
- Use the BufferGeometry bounding box if it exists and set it if it does not.
- Use the center of the triangles bounding box instead of the average of the vertices as the triangles center when binning the polygons.
- Bug where
closestPointToGeometry
would throw an error when target vectors were provided because a function name was misspelled.
- API for performing intersecting boxes, spheres, and geometry.
- API for checking the distance to geometry and points.
- Fixed issue where an index buffer of the incorrect type was created if there were more than 2^16 vertices.
- Fixed MeshBVHVisualizer not visualizing all the groups in the bvh.
- Error conditions when using
InterleavedAttributeBuffers
for both index and position geometry attributes. - The geometry index attribute is modified when building the
MeshBVH
. And index attribute is created on geometry if it does not exist.
- Fix the bounds tree not respecting groups
- Add included files array to package.json.