We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2171b20 + 93a6f84 commit 62e5140Copy full SHA for 62e5140
Sources/Filters/General/ClipClosedSurface/index.js
@@ -799,8 +799,7 @@ function vtkClipClosedSurface(publicAPI, model) {
799
);
800
801
// Check if the input has polys and quads or just triangles
802
- // TODO: Improve performance
803
- polyMax = Math.max(...inputPolys.getCellSizes());
+ polyMax = inputPolys.getCellSizes().reduce((a, b) => (a > b ? a : b), 0);
804
}
805
806
// Arrays for storing the clipped lines and polys
0 commit comments