BufferGeometryeither "indexed" or "not indexed." SphereBufferGeometryhas an index type.
You can access the face normals in the geometry data structure as follows:
var normal = new THREE.Vector3();
...
var faceIndex = 15;
var vertexNumber = 2;
var index = geometry.index.array[ 3 * faceIndex + vertexNumber ];
normal.fromBufferAttribute( geometry.attributes.normal, index );
console.log( normal );
three.js r.83
source
share