improve efficiency of wire mesh generation. free point cache after slice

This commit is contained in:
Stewart Allen 2021-09-18 12:50:05 -04:00
commit 824ec04814
4 changed files with 13 additions and 17 deletions

View file

@ -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);