|
@@ -22,6 +22,8 @@ THREE.BufferGeometry = function () {
|
|
|
this.boundingBox = null;
|
|
|
this.boundingSphere = null;
|
|
|
|
|
|
+ this.drawRange = { start: 0, count: Infinity };
|
|
|
+
|
|
|
};
|
|
|
|
|
|
THREE.BufferGeometry.prototype = {
|
|
@@ -121,6 +123,13 @@ THREE.BufferGeometry.prototype = {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ setDrawRange: function ( start, count ) {
|
|
|
+
|
|
|
+ this.drawRange.start = start;
|
|
|
+ this.drawRange.count = count;
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
applyMatrix: function ( matrix ) {
|
|
|
|
|
|
var position = this.attributes.position;
|