viral-viewer-2 3.1.0 → 3.1.1
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.
|
@@ -33772,18 +33772,18 @@ function workerFunction() {
|
|
|
33772
33772
|
computeEdgeCostAtVertex(vertices[i]);
|
|
33773
33773
|
}
|
|
33774
33774
|
let nextVertex;
|
|
33775
|
-
//
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
z =
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
|
|
33784
|
-
|
|
33775
|
+
// incase max polygons allows larger than reality
|
|
33776
|
+
if (vertices.length > count) {
|
|
33777
|
+
// number of polygon to remove
|
|
33778
|
+
let z = vertices.length - count;
|
|
33779
|
+
while (z--) {
|
|
33780
|
+
nextVertex = minimumCostEdge(vertices);
|
|
33781
|
+
if (!nextVertex) {
|
|
33782
|
+
console.log("THREE.SimplifyModifier: No next vertex");
|
|
33783
|
+
break;
|
|
33784
|
+
}
|
|
33785
|
+
collapse(vertices, faces, nextVertex, nextVertex.collapseNeighbor);
|
|
33785
33786
|
}
|
|
33786
|
-
collapse(vertices, faces, nextVertex, nextVertex.collapseNeighbor);
|
|
33787
33787
|
}
|
|
33788
33788
|
//
|
|
33789
33789
|
const simplifiedGeometry = new BufferGeometry();
|