Skip to content

Commit

Permalink
fix(vtkclipclosedsurface): fix initialization of a bidimensional array
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigobasilio2022 authored and floryst committed Jan 2, 2025
1 parent 3c01212 commit a31fa48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Filters/General/ContourTriangulator/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -1775,10 +1775,9 @@ export function vtkCCSFindCuts(

// Search for potential cuts (need to find two cuts)
let cutId = 0;
cuts[0][0] = 0;
cuts[0][1] = 0;
cuts[1][0] = 0;
cuts[1][1] = 0;
// Initialize cuts as a 2D array with two elements
cuts[0] = [0, 0];
cuts[1] = [0, 0];

let foundCut = false;
for (cutId = 0; cutId < 2; cutId++) {
Expand Down

0 comments on commit a31fa48

Please sign in to comment.