viral-viewer-2 4.0.6 → 4.0.8
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.
|
@@ -34049,7 +34049,7 @@ which can be placed in CurveUtils.
|
|
|
34049
34049
|
let buffer = progressGeometries(event.data);
|
|
34050
34050
|
const dummyGeometry = new BufferGeometry();
|
|
34051
34051
|
dummyGeometry.setAttribute("position", new BufferAttribute(buffer, 3));
|
|
34052
|
-
if (event.data.Instances && event.data.Instances.length >
|
|
34052
|
+
if (event.data.Instances && event.data.Instances.length > 1) {
|
|
34053
34053
|
let geometry = new BufferGeometry();
|
|
34054
34054
|
// // In case number of polygon larger than expect, merge them to reduce polygon first, for optimize purpose
|
|
34055
34055
|
// if (dummyGeometry.attributes.position.count > maxPolygonPerObject) {
|
|
@@ -34087,6 +34087,7 @@ which can be placed in CurveUtils.
|
|
|
34087
34087
|
let matrix4 = new Matrix4();
|
|
34088
34088
|
matrix4.fromArray(numbers);
|
|
34089
34089
|
childMesh.setMatrixAt(index, matrix4);
|
|
34090
|
+
childMesh.setColorAt(index, new Color());
|
|
34090
34091
|
//if number of polygon smaller than expect, generate edges
|
|
34091
34092
|
if (geometry.attributes.position.count <= maxPolygonForEdge) {
|
|
34092
34093
|
const edges = new EdgesGeometry(geometry, 90);
|