Explorar o código

Update meshSimplification.ts

aWeirdo %!s(int64=4) %!d(string=hai) anos
pai
achega
ce2e87b964
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Meshes/meshSimplification.ts

+ 1 - 1
src/Meshes/meshSimplification.ts

@@ -473,7 +473,7 @@ export class QuadraticErrorSimplification implements ISimplifier {
         var findInVertices = (positionToSearch: Vector3) => {
             if (optimizeMesh) {
                 for (var ii = 0; ii < this.vertices.length; ++ii) {
-                    if (this.vertices[ii].position.equals(positionToSearch)) {
+                    if (this.vertices[ii].position.equalsWithEpsilon(positionToSearch, 0.0001)) {
                         return this.vertices[ii];
                     }
                 }