|
@@ -19,6 +19,19 @@ THREE.BufferAttribute.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ copyAt: function ( index1, attribute, index2 ) {
|
|
|
+
|
|
|
+ index1 *= this.itemSize;
|
|
|
+ index2 *= attribute.itemSize;
|
|
|
+
|
|
|
+ for ( var i = 0, l = this.itemSize; i < l; i ++ ) {
|
|
|
+
|
|
|
+ this.array[ index1 + i ] = attribute.array[ index2 + i ];
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
set: function ( value ) {
|
|
|
|
|
|
this.array.set( value );
|