Socket
Socket
Sign inDemoInstall

three-mesh-bvh

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-mesh-bvh - npm Package Versions

23
7

0.8.1

Diff

Changelog

Source

[0.8.1] - 2024-09-29

Fixed

  • Made example SDF generation logic more robust.
  • Adjust the valid the three.js peer dependency.
  • Add "barycoord" to the intersection values to align with latest three.js.
gkjohnson
published 0.8.0 •

Changelog

Source

[0.8.0] - 2024-09-18

Fixed

  • Updated three.js version to r158 where BatchedMesh is supported and available so certain bundlers do not fail on build.
gkjohnson
published 0.7.8 •

Changelog

Source

[0.7.8] - 2024-09-11

Fixed

  • Failure with older versions of three.js.
gkjohnson
published 0.7.7 •

Changelog

Source

~[0.7.7] - 2024-09-09~

deprecated due to three.js version incompatibility. Use v0.8.0.

Added

  • Support for a custom "range" option to build a BVH from a sub range of the geometry.
  • BatchedMesh support for bounds tree generation functions and raycasting. See "computeBatchedBoundsTree" and "disposeBatchedBoundsTree".
  • MeshBVHHelper support for InstancedMesh, BatchedMesh.

Fixed

  • Bug in MeshBVH.bvhcast causing the incorrect bounds to be checked on the other bvh.
  • Box3.setFromObject failing when MeshBVHHelper is included.
gkjohnson
published 0.7.6 •

Changelog

Source

[0.7.6] - 2024-07-02

Fixed

  • Regression when intersecting InstancedMesh instances.
gkjohnson
published 0.7.5 •

Changelog

Source

[0.7.5] - 2024-06-02

Changed

  • Respect Raycaster.near and Raycaster.far during raycast traversal, improving performance.

Fixed

  • The resolveTriangleIndex throwing an error when deserializing an indirect BVH.
gkjohnson
published 0.7.4 •

Changelog

Source

[0.7.4] - 2024-04-10

Changed

  • Improved raycasting performancy by ~20% by avoiding use of the "arrayToBox" function internally.

Fixed

  • ParallelMeshBVHWorker now generates a geometry index if it's required.
  • Add support for the "indirect" option to both workers.
  • Worker generators not guaranteeing that 100% progress would be fired to the onProgress callback.
gkjohnson
published 0.7.3 •

Changelog

Source

[0.7.3] - 2024-02-20

Fixed

  • StaticGeometryGenerator, VertexAttributeTexture now support empty geometry.
gkjohnson
published 0.7.2 •

Changelog

Source

[0.7.2] - 2024-02-13

Fixed

  • MeshBVHHelper not updating correctly

Added

  • StaticGeometryGenerator now inverts geometry winding order when a mesh uses negative scales.
gkjohnson
published 0.7.1 •

Changelog

Source

[0.7.1] - 2024-01-30

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.
23
7
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc