improve efficiency of wire mesh generation. free point cache after slice
This commit is contained in:
parent
69eb0356a9
commit
824ec04814
4 changed files with 13 additions and 17 deletions
|
|
@ -106,17 +106,6 @@
|
|||
return this;
|
||||
};
|
||||
|
||||
// may be faster than the equivalent matrix transform. to be tested
|
||||
// BP.translate = function(x,y,z) {
|
||||
// let off = [x,y,z],
|
||||
// arr = this.attributes.position.array,
|
||||
// len = arr.length;
|
||||
// for (let i=0; i<len; i++) {
|
||||
// arr[i] += off[i%3];
|
||||
// }
|
||||
// return this;
|
||||
// }
|
||||
|
||||
THREE.Object3D.prototype.newGroup = function() {
|
||||
var group = new THREE.Group();
|
||||
this.add(group);
|
||||
|
|
|
|||
Loading…
Reference in a new issue