1) How can I create an array of arrays in VEX?
Example,
Iterate over primitives:
int an_array[]; int pts[] = primpoints(0, @primnum); for(int i = 0; i < @numprim; ++i){ push.(an_array, pts); } setdetailattrib(0, "an_array", an_array);
It should be like that in my understanding,
[[1,2,3], [4,6], [7,8,10,15]]
[1,2,3,4,6,7,8,10,15]
2) How can I overload the Push function so that it can work with custom structures?
Example,
struct Test{ int index; vector data; }; Test test; test.index = 1; test.data = {1,0,0}; vector an_array[]; push(an_array, test);
But this code causes an error.