You have to handle the case for indexed and non-indexed `BufferGeometry`.