Skip to content

Commit 953a2be

Browse files
PaulHaxfloryst
authored andcommitted
fix(PolyLineRepresentation): when closePolyLine is true
Last CellData element was incorrect for closePolyLine true case.
1 parent 3d085e6 commit 953a2be

File tree

1 file changed

+1
-1
lines changed
  • Sources/Widgets/Representations/PolyLineRepresentation

1 file changed

+1
-1
lines changed

Sources/Widgets/Representations/PolyLineRepresentation/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function vtkPolyLineRepresentation(publicAPI, model) {
4949
cellData[i] = i - 1;
5050
}
5151
if (closePolyLine) {
52-
cellData[cellSize - 1] = 0;
52+
cellData[cellSize] = 0;
5353
}
5454
lines.setData(cellData);
5555
}

0 commit comments

Comments
 (0)