Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

three-mesh-bvh

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-mesh-bvh - npm Package Versions

13
7

0.7.1

Diff

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.
gkjohnson
published 0.7.0 •

Changelog

Source

[0.7.0] - 2024-01-15

Changed

  • MeshBVHVisualizer has been deprecated and renamed MeshBVHHelper 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.
gkjohnson
published 0.7.0-beta.0 •

gkjohnson
published 0.6.8 •

Changelog

Source

[0.6.8] - 2023-10-08

Changed

  • Small performance improvements to bvhcast function (up to ~10%).
gkjohnson
published 0.6.7 •

Changelog

Source

[0.6.7] - 2023-09-07

Fixed

  • GPU function parameters to fix undefined behavior on some platforms.
gkjohnson
published 0.6.6 •

Changelog

Source

[0.6.6] - 2023-09-03

Fixed

  • Case where indirect buffer with no index failed to raycast.
gkjohnson
published 0.6.5 •

Changelog

Source

[0.6.5] - 2023-08-30

Added

  • Added support for draw range so the BVH now implicitly respects the start and end range specified in the geometry.
gkjohnson
published 0.6.4 •

Changelog

Source

[0.6.4] - 2023-08-28

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.
gkjohnson
published 0.6.3 •

Changelog

Source

[0.6.3] - 2023-07-22

Fixed

  • Fixed another triangle / triangle intersection failure case.
  • Type declaration and documentation for shapecast function.
gkjohnson
published 0.6.2 •

Changelog

Source

[0.6.2] - 2023-07-19

Fixed

  • Fixed triangle / triangle intersection failure case.
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