I recently took the Advanced Creative Coding with WebGL & Shaders course taught by Matt DesLauriersd. During one of his videos, he demonstrated how to extract the vertices array for an icosahedronGeometry object using the following code:
const geometry = new THREE.SphereGeometry(1, 32, 16);
const baseGeometry = new THREE.IcosahedronGeometry(1, 1);
const points = baseGeometry.vertices;
console.log(points)
However, when I attempted to do the same, I found that the result was undefined.
For more details, you can view my implementation on jsfiddle: https://jsfiddle.net/18hd3jge/