While it may seem like an easy question, I am looking to place objects on top of the vertices of a sphere in Three.js. Each sphere is made up of small triangles, and I specifically need the coordinates of these corners/vertices rather than random locations on the sphere.
Here is the code I have tried that does not work:
var sphereGeometry = new THREE.SphereGeometry( 80, 16, 8 );
console.log(sphereGeometry.geometry.vertices.length);
The second line is giving me an error "sphereGeometry.geometry is undefined." This is puzzling because sphereGeometry should inherit properties from geometry, but I am stuck on how to access the coordinates of each vertex. Any assistance would be greatly appreciated.