Repository navigation
What's Changed
- Add
PointOctree.raycastClosest()to return the nearest hit, ornullif 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, andraycast()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 withnullorundefineddata 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()andfindPoints()missing points stored outside their leaf’s nominal bounds because of octree bias. Also correct the Y-axis calculation inPointOctant.distanceToCenterSquared(). 7e579ca, 89cf6b4 - Call
super.dispose()fromOctreeHelper.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