Skip to content

v7.3.0

Latest

Choose a tag to compare

@vanruesc vanruesc released this 21 Nov 21:35

What's Changed

  • Add PointOctree.raycastClosest() to return the nearest hit, or null if the ray misses. 979717d
  • Fix PointOctree.raycast() to account for the point threshold and octree bias, including hits in neighboring octants and hits when the ray passes just outside the root bounds. Raycasts allocate less memory, and raycast() now returns hits nearest first. 7807664, 91fbabc
  • Fix octree traversal for axis-aligned rays, including rays that run along an outer face. 53f00c4
  • Fix PointOctree.move() so moving onto an occupied position replaces the destination point without creating a duplicate. Moving to the same position preserves the point, and points with null or undefined data can be moved. #58, 37ccfe1, 1f35318, a8330d9
  • Preserve points and their data in descendant octants when removing a point triggers a merge. 3161f39
  • Fix findNearestPoint() and findPoints() missing points stored outside their leaf’s nominal bounds because of octree bias. Also correct the Y-axis calculation in PointOctant.distanceToCenterSquared(). 7e579ca, 89cf6b4
  • Call super.dispose() from OctreeHelper.dispose() when available, starting with r186. 41ed64f
  • Add a point-picking threshold control to the demo and use raycastClosest() for selection. 6afe18d, 979717d
  • Bump actions/setup-node from 6 to 7 by @dependabot in #53

Full Changelog: v7.2.0...v7.3.0