File tree 1 file changed +9
-4
lines changed
Sources/Filters/General/ContourTriangulator
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1775,9 +1775,11 @@ export function vtkCCSFindCuts(
1775
1775
1776
1776
// Search for potential cuts (need to find two cuts)
1777
1777
let cutId = 0 ;
1778
- // Initialize cuts as a 2D array with two elements
1779
- cuts [ 0 ] = [ 0 , 0 ] ;
1780
- cuts [ 1 ] = [ 0 , 0 ] ;
1778
+
1779
+ cuts [ 0 ] [ 0 ] = 0 ;
1780
+ cuts [ 0 ] [ 1 ] = 0 ;
1781
+ cuts [ 1 ] [ 0 ] = 0 ;
1782
+ cuts [ 1 ] [ 1 ] = 0 ;
1781
1783
1782
1784
let foundCut = false ;
1783
1785
for ( cutId = 0 ; cutId < 2 ; cutId ++ ) {
@@ -2015,12 +2017,15 @@ export function vtkCCSCutHoleyPolys(
2015
2017
// Do a quick search first, then do an exhaustive search.
2016
2018
let madeCut = 0 ;
2017
2019
let inner = 0 ;
2020
+ const cuts = [
2021
+ [ 0 , 0 ] ,
2022
+ [ 0 , 0 ] ,
2023
+ ] ;
2018
2024
for ( let exhaustive = 0 ; exhaustive < 2 && ! madeCut ; exhaustive ++ ) {
2019
2025
for ( let j = 1 ; j < polyGroup . length ; j ++ ) {
2020
2026
inner = innerBySize [ j ] [ 1 ] ;
2021
2027
innerPolyId = polyGroup [ inner ] ;
2022
2028
2023
- const cuts = [ ] ;
2024
2029
if (
2025
2030
vtkCCSFindCuts (
2026
2031
polys ,
You can’t perform that action at this time.
0 commit comments