@@ -31,7 +31,7 @@ THREE.BufferGeometry.prototype = {
3131
3232 if ( attribute instanceof THREE . BufferAttribute === false && attribute instanceof THREE . InterleavedBufferAttribute === false ) {
3333
34- THREE . warn ( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' ) ;
34+ console . warn ( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' ) ;
3535
3636 this . attributes [ name ] = { array : arguments [ 1 ] , itemSize : arguments [ 2 ] } ;
3737
@@ -458,7 +458,7 @@ THREE.BufferGeometry.prototype = {
458458
459459 } else {
460460
461- THREE . warn ( 'THREE.BufferGeometry.fromGeometry(): Undefined vertexUv' , i ) ;
461+ console . warn ( 'THREE.BufferGeometry.fromGeometry(): Undefined vertexUv' , i ) ;
462462
463463 }
464464
@@ -485,7 +485,7 @@ THREE.BufferGeometry.prototype = {
485485
486486 } else {
487487
488- THREE . warn ( 'THREE.BufferGeometry.fromGeometry(): Undefined vertexUv2' , i ) ;
488+ console . warn ( 'THREE.BufferGeometry.fromGeometry(): Undefined vertexUv2' , i ) ;
489489
490490 }
491491
@@ -559,7 +559,7 @@ THREE.BufferGeometry.prototype = {
559559
560560 if ( isNaN ( this . boundingBox . min . x ) || isNaN ( this . boundingBox . min . y ) || isNaN ( this . boundingBox . min . z ) ) {
561561
562- THREE . error ( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.' , this ) ;
562+ console . error ( 'THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.' , this ) ;
563563
564564 }
565565
@@ -613,7 +613,7 @@ THREE.BufferGeometry.prototype = {
613613
614614 if ( isNaN ( this . boundingSphere . radius ) ) {
615615
616- THREE . error ( 'THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.' , this ) ;
616+ console . error ( 'THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.' , this ) ;
617617
618618 }
619619
@@ -758,7 +758,7 @@ THREE.BufferGeometry.prototype = {
758758 this . attributes . normal === undefined ||
759759 this . attributes . uv === undefined ) {
760760
761- THREE . warn ( 'THREE.BufferGeometry: Missing required attributes (index, position, normal or uv) in BufferGeometry.computeTangents()' ) ;
761+ console . warn ( 'THREE.BufferGeometry: Missing required attributes (index, position, normal or uv) in BufferGeometry.computeTangents()' ) ;
762762 return ;
763763
764764 }
@@ -948,9 +948,9 @@ THREE.BufferGeometry.prototype = {
948948 var UintArray = ( ( vertices . length / 3 ) > 65535 && THREE . BufferGeometry . MaxIndex > 65535 ) ? Uint32Array : Uint16Array ;
949949
950950 /*
951- THREE .log("Computing buffers in offsets of "+size+" -> indices:"+indices.length+" vertices:"+vertices.length);
952- THREE .log("Faces to process: "+(indices.length/3));
953- THREE .log("Reordering "+verticesCount+" vertices.");
951+ console .log("Computing buffers in offsets of "+size+" -> indices:"+indices.length+" vertices:"+vertices.length);
952+ console .log("Faces to process: "+(indices.length/3));
953+ console .log("Reordering "+verticesCount+" vertices.");
954954 */
955955
956956 var sortedIndices = new UintArray ( indices . length ) ;
@@ -1030,10 +1030,10 @@ THREE.BufferGeometry.prototype = {
10301030
10311031 /*
10321032 var orderTime = Date.now();
1033- THREE .log("Reorder time: "+(orderTime-s)+"ms");
1034- THREE .log("Duplicated "+duplicatedVertices+" vertices.");
1035- THREE .log("Compute Buffers time: "+(Date.now()-s)+"ms");
1036- THREE .log("Draw offsets: "+offsets.length);
1033+ console .log("Reorder time: "+(orderTime-s)+"ms");
1034+ console .log("Duplicated "+duplicatedVertices+" vertices.");
1035+ console .log("Compute Buffers time: "+(Date.now()-s)+"ms");
1036+ console .log("Draw offsets: "+offsets.length);
10371037 */
10381038
10391039 return offsets ;
@@ -1044,7 +1044,7 @@ THREE.BufferGeometry.prototype = {
10441044
10451045 if ( geometry instanceof THREE . BufferGeometry === false ) {
10461046
1047- THREE . error ( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.' , geometry ) ;
1047+ console . error ( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.' , geometry ) ;
10481048 return ;
10491049
10501050 }
0 commit comments