Skip to content

Commit

Permalink
fix(contourtriangulator): fix vtkContourTriangulator when points are …
Browse files Browse the repository at this point in the history
…ordered in odd way

An integer number was additioned to an array.

fix #2990
  • Loading branch information
finetjul committed Jan 22, 2024
1 parent 4945167 commit 8e08cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Filters/General/ContourTriangulator/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ export function vtkCCSMakePolysFromLines(
let ptsEnd = npts - 1;
if (endIdx === 1) {
pit = npts - 1 - (completePoly ? 1 : 0);
ptsIt = pts + 1;
ptsEnd = pts + npts - (completePoly ? 1 : 0);
ptsIt = 1;
ptsEnd = npts - (completePoly ? 1 : 0);
}
while (ptsIt !== ptsEnd) {
poly[--pit] = poly[ptsIt++];
Expand Down

0 comments on commit 8e08cbb

Please sign in to comment.