Appropriate data structure
I am making a 3d world in which i am not allowed to use an api (except to plot points and handle the window). So i have to setup and maintain all the data and transformations etc myself. So ive been thinking about data structures and which one would be best. And i figured, since you guys are the masters :) i'd ask you for your opinions.
The data will be coordinates read in from a text file. These coordinates will make up an object (cube, pyramid etc). Of which there will be a varying amount in the scene. Each vertex point will have x, y, z coordinates, r, g, b colour values and u and v texture coords. And again the number of vertices is not necesarily known or rather changes from object to object. So as you can see theres a large amount of data needed to be passed around. It also needs to be fast to access as it needs to be rendered quickly but easy to maintain and dynamic in its structure. So what are your thoughts as to which would be best?