Skip to content

Commit a31fa48

Browse files
rodrigobasilio2022floryst
authored andcommitted
fix(vtkclipclosedsurface): fix initialization of a bidimensional array
1 parent 3c01212 commit a31fa48

File tree

1 file changed

+3
-4
lines changed
  • Sources/Filters/General/ContourTriangulator

1 file changed

+3
-4
lines changed

Sources/Filters/General/ContourTriangulator/helper.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -1775,10 +1775,9 @@ export function vtkCCSFindCuts(
17751775

17761776
// Search for potential cuts (need to find two cuts)
17771777
let cutId = 0;
1778-
cuts[0][0] = 0;
1779-
cuts[0][1] = 0;
1780-
cuts[1][0] = 0;
1781-
cuts[1][1] = 0;
1778+
// Initialize cuts as a 2D array with two elements
1779+
cuts[0] = [0, 0];
1780+
cuts[1] = [0, 0];
17821781

17831782
let foundCut = false;
17841783
for (cutId = 0; cutId < 2; cutId++) {

0 commit comments

Comments
 (0)