menpo / landmarker.io

Image and mesh annotation web application
https://www.landmarker.io
BSD 3-Clause "New" or "Revised" License
114 stars 21 forks source link

Octree #72

Closed jabooth closed 9 years ago

jabooth commented 9 years ago

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.