I've encountered an issue with accessing the .attributes.position for geometry in THREE.js. The console is returning an error message: 'Uncaught TypeError: Cannot read properties of undefined (reading 'position')'.
const cylinderGeometry = new THREE.CylinderGeometry( 5, 5, 5, 5, 15, 5, 30 );
const position = cylinderGeometry.attributes.position;
const vertex = new THREE.Vector3();
This code snippet is referenced from .
Any thoughts on why this issue might arise? Could it be related to the version of THREE.js that I'm currently using?