I've implemented a simple rectangle packing algorithm, which I want to use for the font texture.
The algorithm is only 40 lines long. It keeps track how far each row is already filled and greedily inserts rectangle at the place where they are "most to the left", starting with the tallest rectangles.
small refactoring of OcTree to simply change the intersection test function during construction. This allows to choose between accurate or fast functions.
OcTree is working now. Only included the static geometry at the moment. Can now ray cast into the scene.