Egg Octree

Wow, that’s great, sir! Thank you very much.

Although, I must say there is something wrong with this code. I have tried it on smaller meshes, and it works fine. But when I try to convert the bigger mesh (few hundred thousand vertices), it crashes right after generating the first file (soon after “writing egg…” appears, before “Done”), without trying to make bam files. The first generated egg seems to be corrupt also: when trying to load it into Panda, Panda crashes without any warnings…

I am going to test it with Roaming Ralph’s world.egg, and let you know (it can take quite some time, since I don’t understand how to use generated models for collisions while have original world.egg for rendering… Just learning…)