there is only one problem before it will work like you shows it here: what is the syntax behind this :
VECTOR 3D vPolygone[4];
(structs/classes dont allow spaces in name)
you want to do something like(c++ style, non indexed arrays):
struct VECTOR3D{
float x,y,z/,w/;//i never use w for vectors
};
struct POLY{
VECTOR3D v1,v2,v3
};
//then using em as:
POLY polyarray[2<<31/size /];
//accessing: polyarray[a].v1.x and so on
//or without poly:
VECTOR3D vectorarray[2<<31];
//accessing: vectorarray[a].x …
or without structs/classes:
float vectorarray[2<<31][3];
//accessing via vectorarray[a][0 for x …];
all this code dont let u define at runtime the ammount of data, for this you have to use pointers !
[This message has been edited by T2k (edited 10-17-2001).]
[This message has been edited by T2k (edited 10-17-2001).]