Browse Source

Fixing variable name

A shameful typo...
Raanan Weber 10 years ago
parent
commit
3d73c76876

+ 2 - 2
Babylon/Mesh/babylon.meshSimplification.js

@@ -117,7 +117,7 @@
             this._mesh = _mesh;
             this.initialised = false;
             this.syncIterations = 5000;
-            this.agressiveness = 7;
+            this.aggressiveness = 7;
             this.decimationIterations = 100;
         }
         QuadraticErrorSimplification.prototype.simplify = function (settings, successCallback) {
@@ -144,7 +144,7 @@
                         _this.triangles[i].isDirty = false;
                     }
 
-                    var threshold = 0.000000001 * Math.pow((iteration + 3), _this.agressiveness);
+                    var threshold = 0.000000001 * Math.pow((iteration + 3), _this.aggressiveness);
 
                     var trianglesIterator = function (i) {
                         var t = _this.triangles[i];

+ 3 - 3
Babylon/Mesh/babylon.meshSimplification.ts

@@ -138,11 +138,11 @@
         
         public syncIterations = 5000;
 
-        public agressiveness: number;
+        public aggressiveness : number;
         public decimationIterations: number;
         
         constructor(private _mesh: Mesh) {
-            this.agressiveness = 7;
+            this.aggressiveness  = 7;
             this.decimationIterations = 100;
         }
 
@@ -168,7 +168,7 @@
                         this.triangles[i].isDirty = false;
                     }
 
-                    var threshold = 0.000000001 * Math.pow((iteration + 3), this.agressiveness);
+                    var threshold = 0.000000001 * Math.pow((iteration + 3), this.aggressiveness);
 
                     var trianglesIterator = (i) => {
                         var t = this.triangles[i];