Jump to content

  • Log In with Google      Sign In   
  • Create Account

Polymorphism with Linked Lists


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
21 replies to this topic

#21 apatriarca   Crossbones+   -  Reputation: 1707

Like
0Likes
Like

Posted 03 November 2011 - 08:00 AM

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.

Sponsor:

#22 TMarques   Members   -  Reputation: 189

Like
0Likes
Like

Posted 03 November 2011 - 09:38 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS