I have an array of x/y/z positions from a BufferGeometry, there are nearly 60000 points (18000 values),
[3, 2, 1, 3, 2, 1, 3, 2, 1, ...]
I need to shuffle those positions and then get the 30000 first to get random points. I am thinking of converting this array to an array of Vector 3 before shuffling to not lose all the "trio" values.
[new THREE.Vector3(3, 2, 1), new THREE.Vector3(3, 2, 1), new THREE.Vector3(3, 2, 1), ...]
I need vocabulary help. Is there specific names for those two arrays please ? (that would help me found out about the next questions).
Is there specific methods to convert an array to another ?
And is there a best way to shuffle the raw positions array ?