viral-viewer-2 3.3.1 → 3.3.2
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.
|
@@ -34141,8 +34141,8 @@ function workerFunction() {
|
|
|
34141
34141
|
matrix4.fromArray(numbers);
|
|
34142
34142
|
childMesh.setMatrixAt(index, matrix4);
|
|
34143
34143
|
//if number of polygon smaller than expect, generate edges
|
|
34144
|
-
if (geometry.attributes.position.count
|
|
34145
|
-
const edges = new EdgesGeometry(geometry,
|
|
34144
|
+
if (geometry.attributes.position.count <= maxPolygonForEdge) {
|
|
34145
|
+
const edges = new EdgesGeometry(geometry, 15);
|
|
34146
34146
|
const positions = edges.attributes.position.array;
|
|
34147
34147
|
const indices = [];
|
|
34148
34148
|
for (let i = 0; i < positions.length / 3; i += 2) {
|
|
@@ -34166,7 +34166,7 @@ function workerFunction() {
|
|
|
34166
34166
|
}
|
|
34167
34167
|
else {
|
|
34168
34168
|
dummyGeometry.computeVertexNormals();
|
|
34169
|
-
const edges = new EdgesGeometry(dummyGeometry,
|
|
34169
|
+
const edges = new EdgesGeometry(dummyGeometry, 15);
|
|
34170
34170
|
const positions = edges.attributes.position.array;
|
|
34171
34171
|
const indices = [];
|
|
34172
34172
|
for (let i = 0; i < positions.length / 3; i += 2) {
|