How to structure class to support imported 3d model ?
- by brainydexter
Hello,
I've written a C++ library that reads in this 3d model file (collada DAE). uptil now, I would output a list of triangles and handle each at rendering stage. But now, I need to attach some Bounding sphere information with the imported model. I need some advice on how should I organize this in code. Here are some specs of the 3D file format:
- 3D model is represented as a Tree consisting of nodes
- each node can contain other nodes, geometry information, transformation etc
My requirements:
- a bounding sphere associated with each node, thereby yielding a tree of bounding sphere hierarchy for the model itself.
- actual vertex information
What would be the recommended way to deal with this situation?
Thanks