-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(troika-3d): fix errors due to excessively deep BoundingSphereOctrees
Fixes issue #42. Bounding spheres with centers extremely close together would result in very deep trees, hurting search performance, and also apparently causing invalid tree states due to floating point precision quirks (though I couldn't identify how exactly.) This change rounds all bounding sphere positions to a fixed precision which is then used throughout for determining leaf coincidence.
- Loading branch information
Showing
1 changed file
with
38 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters