Some more cleaning

This commit is contained in:
Thomas FORGIONE
2015-07-01 15:18:43 +02:00
parent 86f2094af6
commit 5e0551179e
4 changed files with 5 additions and 11 deletions

View File

@@ -155,11 +155,11 @@ ReverseCamera.prototype.regenerateArrow = function(mainCamera) {
var len = vertices.length;
faces.push(new THREE.Face3(len-4,len-3,len-2), new THREE.Face3(len-4,len-2,len-1));
var max = 0;
for (i = 0; i < faces.length; i++) {
max = Math.max(max, faces[i].a, faces[i].b, faces[i].c);
}
console.log(max + '/' + len);
// var max = 0;
// for (i = 0; i < faces.length; i++) {
// max = Math.max(max, faces[i].a, faces[i].b, faces[i].c);
// }
// console.log(max + '/' + len);
this.arrow.geometry.faces = faces;