viral-viewer-2 3.1.1 → 3.1.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.
|
@@ -34143,23 +34143,29 @@ function workerFunction() {
|
|
|
34143
34143
|
matrix4.fromArray(numbers);
|
|
34144
34144
|
childMesh.setMatrixAt(index, matrix4);
|
|
34145
34145
|
//if number of polygon smaller than expect, generate edges
|
|
34146
|
-
if (geometry.attributes.position.count < maxPolygonForEdge) {
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
|
|
34156
|
-
|
|
34157
|
-
|
|
34158
|
-
|
|
34159
|
-
|
|
34160
|
-
|
|
34161
|
-
|
|
34162
|
-
|
|
34146
|
+
// if (geometry.attributes.position.count < maxPolygonForEdge) {
|
|
34147
|
+
// const edges = new EdgesGeometry(geometry, 90);
|
|
34148
|
+
// const positions = edges.attributes.position.array;
|
|
34149
|
+
// const indices = [];
|
|
34150
|
+
// for (let i = 0; i < positions.length / 3; i += 2) {
|
|
34151
|
+
// indices.push(i, i + 1);
|
|
34152
|
+
// }
|
|
34153
|
+
// const bufferGeometry = new BufferGeometry();
|
|
34154
|
+
// // Set the position attribute
|
|
34155
|
+
// bufferGeometry.setAttribute(
|
|
34156
|
+
// "position",
|
|
34157
|
+
// new BufferAttribute(new Float32Array(positions), 3)
|
|
34158
|
+
// );
|
|
34159
|
+
// // Set the index attribute
|
|
34160
|
+
// bufferGeometry.setIndex(indices);
|
|
34161
|
+
// const line = new LineSegments(
|
|
34162
|
+
// bufferGeometry,
|
|
34163
|
+
// new LineBasicMaterial({ color: "#666", linewidth: 0.5 })
|
|
34164
|
+
// );
|
|
34165
|
+
// line.applyMatrix4(matrix4);
|
|
34166
|
+
// line.updateMatrix();
|
|
34167
|
+
// childMesh.add(line);
|
|
34168
|
+
// }
|
|
34163
34169
|
}
|
|
34164
34170
|
// childMesh.instanceMatrix.needsUpdate = true;
|
|
34165
34171
|
childMesh.updateMatrix();
|