My BufferGeometry contains an array of x/y/z positions with almost 60,000 points (18,000 values),
[3, 2, 1, 3, 2, 1, 3, 2, 1, ...]
To obtain random points, I am considering shuffling these positions and then selecting the first 30,000. One idea is to first convert this array into an array of Vector 3 to retain the trio values.
[new THREE.Vector3(3, 2, 1), new THREE.Vector3(3, 2, 1), new THREE.Vector3(3, 2, 1), ...]
I could use some help with terminology. Are there specific names for these two arrays? This information will assist me in tackling subsequent questions.
Are there established methods for converting one array into another?
Furthermore, what is the most efficient way to shuffle the original positions array?