Polymorphism with Linked Lists

Started by
20 comments, last by tmarques4 12 years, 5 months ago
This may be a useful exercise to learn polymorphism and inheritance, but I think your are designing your application backwards. You are designing a data structure for 3D models without any use case, but this is one of those cases when the data structure may be really different depending on usage. A 3D model data structure for rendering is very different from a data structure for modeling or geometric computations or ... Indeed, 3D models are usually converted to different formats when converted to game assets. You may soon discover that your design is quite bad in basically every use case of a library of that kind.
Advertisement

This may be a useful exercise to learn polymorphism and inheritance, but I think your are designing your application backwards. You are designing a data structure for 3D models without any use case, but this is one of those cases when the data structure may be really different depending on usage. A 3D model data structure for rendering is very different from a data structure for modeling or geometric computations or ... Indeed, 3D models are usually converted to different formats when converted to game assets. You may soon discover that your design is quite bad in basically every use case of a library of that kind.


I'll gladly post my work on this data structure regardless of failure or success and share my experiences as to what I think went wrong and what went right.
Tiago.MWeb Developer - Aspiring CG Programmer

This topic is closed to new replies.

Advertisement