I've developed a simple bone hierarchy struture that is used to stiore data for a bone in a skeleton. The structure is capable of have multiple children.
The data for the skeleton is loaded from a file.
I was wondering whether it's better to link parent to children using indexes or pointers.
If I use indexes then they can be stored in the file as integers and the whole skeleton can be loaded with the 'fread' function. However if I use pointers then they cannot be loaded in this way and extra code must be added to initialise the child poiners.
I hope I make sense,
any help would be appreciated.
Dave
Start Free Trial