File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Sources/Filters/General/ContourTriangulator Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1775,9 +1775,11 @@ export function vtkCCSFindCuts(
17751775
17761776 // Search for potential cuts (need to find two cuts)
17771777 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 ;
17811783
17821784 let foundCut = false ;
17831785 for ( cutId = 0 ; cutId < 2 ; cutId ++ ) {
@@ -2015,12 +2017,15 @@ export function vtkCCSCutHoleyPolys(
20152017 // Do a quick search first, then do an exhaustive search.
20162018 let madeCut = 0 ;
20172019 let inner = 0 ;
2020+ const cuts = [
2021+ [ 0 , 0 ] ,
2022+ [ 0 , 0 ] ,
2023+ ] ;
20182024 for ( let exhaustive = 0 ; exhaustive < 2 && ! madeCut ; exhaustive ++ ) {
20192025 for ( let j = 1 ; j < polyGroup . length ; j ++ ) {
20202026 inner = innerBySize [ j ] [ 1 ] ;
20212027 innerPolyId = polyGroup [ inner ] ;
20222028
2023- const cuts = [ ] ;
20242029 if (
20252030 vtkCCSFindCuts (
20262031 polys ,
You can’t perform that action at this time.
0 commit comments