viral-viewer-2 2.9.3 → 2.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33754,7 +33754,7 @@ function workerFunction() {
|
|
|
33754
33754
|
const a = index.getX(i);
|
|
33755
33755
|
const b = index.getX(i + 1);
|
|
33756
33756
|
const c = index.getX(i + 2);
|
|
33757
|
-
const triangle = new
|
|
33757
|
+
const triangle = new SimplierTriangle(vertices[a], vertices[b], vertices[c], a, b, c);
|
|
33758
33758
|
faces.push(triangle);
|
|
33759
33759
|
}
|
|
33760
33760
|
}
|
|
@@ -33763,7 +33763,7 @@ function workerFunction() {
|
|
|
33763
33763
|
const a = i;
|
|
33764
33764
|
const b = i + 1;
|
|
33765
33765
|
const c = i + 2;
|
|
33766
|
-
const triangle = new
|
|
33766
|
+
const triangle = new SimplierTriangle(vertices[a], vertices[b], vertices[c], a, b, c);
|
|
33767
33767
|
faces.push(triangle);
|
|
33768
33768
|
}
|
|
33769
33769
|
}
|
|
@@ -33954,7 +33954,7 @@ function workerFunction() {
|
|
|
33954
33954
|
return least;
|
|
33955
33955
|
}
|
|
33956
33956
|
// we use a triangle class to represent structure of face slightly differently
|
|
33957
|
-
class
|
|
33957
|
+
class SimplierTriangle {
|
|
33958
33958
|
constructor(v1, v2, v3, a, b, c) {
|
|
33959
33959
|
this.a = a;
|
|
33960
33960
|
this.b = b;
|