@kitware/vtk.js 25.7.0 → 25.7.1
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.
|
@@ -701,9 +701,10 @@ function vtkClipClosedSurface(publicAPI, model) {
|
|
|
701
701
|
copyPolygons(inputPolys, polys, inputScalars, firstPolyScalar, polyScalars, colors[0]); // TODO: Support triangle strips
|
|
702
702
|
|
|
703
703
|
breakTriangleStrips(input.getStrips(), polys, inputScalars, firstStripScalar, polyScalars, colors[0]); // Check if the input has polys and quads or just triangles
|
|
704
|
-
// TODO: Improve performance
|
|
705
704
|
|
|
706
|
-
polyMax =
|
|
705
|
+
polyMax = inputPolys.getCellSizes().reduce(function (a, b) {
|
|
706
|
+
return a > b ? a : b;
|
|
707
|
+
}, 0);
|
|
707
708
|
} // Arrays for storing the clipped lines and polys
|
|
708
709
|
|
|
709
710
|
|