how do I access the integers in the data object of this array?
Ultimately, I want to write a for loop to enter and compute the vpos (vertices).
var arrays = {
vpos : { numComponents: 3, data:
[
-.5,-1,-.5, .5,-.5,-.5, .5, .5,-.5,
-.5,-.5,-.5, .5, .5,-.5, -.5, .5,-.5,
-.5,-.5, .5, .5,-.5, .5, .5, .5, .5
] },
vnormal : {numComponents:3, data: [
0,0,-1, 0,0,-1, 0,0,-1,
0,0,-1, 0,0,-1, 0,0,-1,
0,0,1, 0,0,1, 0,0,1,
]}
};