viral-viewer-2 3.6.5 → 3.6.6
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.
|
@@ -34054,7 +34054,8 @@ which can be placed in CurveUtils.
|
|
|
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) {
|
|
34056
34056
|
let modifier = new SimplifyModifier();
|
|
34057
|
-
|
|
34057
|
+
// decrease 50% of polygon
|
|
34058
|
+
geometry = modifier.modify(dummyGeometry, dummyGeometry.attributes.position.count * 0.5);
|
|
34058
34059
|
console.log(dummyGeometry.attributes.position.count, geometry.attributes.position.count);
|
|
34059
34060
|
}
|
|
34060
34061
|
else {
|