I was following Advanced Creative Coding with WebGL & Shaders course https://frontendmasters.com/courses/webgl-shaders/ by Matt DesLauriersd and one video he extracted the vertices array for icosahedronGeometry object by doing this:
const geometry = new THREE.SphereGeometry(1, 32, 16);
const baseGeometry = new THREE.IcosahedronGeometry(1, 1);
const points = baseGeometry.vertices;
console.log(points)
but when I do it it is undifined
link to jsfiddle : https://jsfiddle.net/18hd3jge/