console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them.');
returnnull;
}
// gather attributes, exit early if they're different
for(varnameingeometry.attributes){
if(!attributesUsed.has(name))returnnull;
if(!attributesUsed.has(name)){
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. All geometries must have compatible attributes; make sure "'+name+'" attribute exists among all geometries, or in none of them.');
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. .morphTargetsRelative must be consistent throughout all geometries.');
returnnull;
}
for(varnameingeometry.morphAttributes){
if(!morphAttributesUsed.has(name))returnnull;
if(!morphAttributesUsed.has(name)){
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. .morphAttributes must be consistent throughout all geometries.');
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. The geometry must have either an index or a position attribute');
console.error('THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes.');
console.error('THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes.');
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. All geometries must have compatible attributes; make sure index attribute exists among all geometries, or in none of them.');
returnnull;
}
// gather attributes, exit early if they're different
for(varnameingeometry.attributes){
if(!attributesUsed.has(name))returnnull;
if(!attributesUsed.has(name)){
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. All geometries must have compatible attributes; make sure "'+name+'" attribute exists among all geometries, or in none of them.');
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. .morphTargetsRelative must be consistent throughout all geometries.');
returnnull;
}
for(varnameingeometry.morphAttributes){
if(!morphAttributesUsed.has(name))returnnull;
if(!morphAttributesUsed.has(name)){
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. .morphAttributes must be consistent throughout all geometries.');
console.error('THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index '+i+'. The geometry must have either an index or a position attribute');
console.error('THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.array must be of consistent array types across matching attributes.');
console.error('THREE.BufferGeometryUtils: .mergeBufferAttributes() failed. BufferAttribute.normalized must be consistent across matching attributes.');