How to structure class to support imported 3d model ?
Posted
by brainydexter
on Stack Overflow
See other posts from Stack Overflow
or by brainydexter
Published on 2010-05-24T05:15:57Z
Indexed on
2010/05/24
5:21 UTC
Read the original article
Hit count: 326
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
© Stack Overflow or respective owner