Upgrade JSI R-Tree or change implementation entirely
org.simantics.scenegraph
includes code from Java Spatial Index (JSI)
The version we have copied over is 1.0b8 also dubbed R1.0.0.
However we have made some modifications to the library in org.simantics.scenegraph
:
-
Added some R-Tree traversal code to allow rendering a debugging view of the R-Tree's structure.
-
Most importantly, for accuracy, we needed to change float -> double everywhere: cd7e0e90
Based on https://github.com/aled/jsi/network I think the best alternative for this might be to fork the GitHub project and make all the necessary modifications to the library in there and then use the JAR built from there directly to avoid any license hassles.
There's also one fork of the project (https://github.com/gunnar-ifp/jsi) that has simplified the library to a bare minimum to remove all external dependencies (such as Trove4j) and optimized out some unnecessary data structures. This would be worth a shot but it will require the abovementioned changes redone.