Three.js: Correct way to setIndex / indices for BufferGeometry?
问题 I'm trying to set per-face UV indices in a BufferGeometry. I'm starting with a Geometry. Each face of my geometry has a face.materialIndex corresponding to a UV index. I'm trying to convert this to a BufferGeometry, and then map over the face.materialIndex to the BufferGeometry . Here's what I have so far: // Convert geometry > buffergeometry const bufGeo = new BufferGeometry().fromGeometry( geometry ); // Get an array of all the original geometry's indices... const faceIndices = geometry