viral-viewer-2 3.1.3 → 3.1.5
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.
|
@@ -34112,6 +34112,7 @@ function workerFunction() {
|
|
|
34112
34112
|
// } else {
|
|
34113
34113
|
// geometry = dummyGeometry;
|
|
34114
34114
|
// }
|
|
34115
|
+
let modifier = new SimplifyModifier();
|
|
34115
34116
|
geometry = modifier.modify(dummyGeometry, maxPolygonPerObject);
|
|
34116
34117
|
console.log(dummyGeometry.attributes.position.count, geometry.attributes.position.count);
|
|
34117
34118
|
const childMesh = new InstancedMesh(geometry, new MeshBasicMaterial(), event.data.Instances.length);
|