This resolves #48. Unfortunately THREE.Octree is quite a complex beast that is tackling a more general problem than I have here - I just want to build an octree for a BufferGeometry specifically in it's own model space. In this more constrained setting, writing an Octree turns out to be really simple, so I implemented it myself.
Performance is good enough to do real-time landmark repositioning on meshes which was the hope.
The octree code currently makes some assumptions that are true in landmarker.io, although I imagine with some small effort it could be made into something useful for many applications.
This resolves #48. Unfortunately THREE.Octree is quite a complex beast that is tackling a more general problem than I have here - I just want to build an octree for a BufferGeometry specifically in it's own model space. In this more constrained setting, writing an Octree turns out to be really simple, so I implemented it myself.
Performance is good enough to do real-time landmark repositioning on meshes which was the hope.
The octree code currently makes some assumptions that are true in landmarker.io, although I imagine with some small effort it could be made into something useful for many applications.