Skip to content

Commit adf7017

Browse files
WesleyTheGeolienfinetjul
authored andcommitted
fix(tubeFilter): update npts and change to global func
1 parent 4f37aed commit adf7017

File tree

1 file changed

+2
-6
lines changed
  • Sources/Filters/General/TubeFilter

1 file changed

+2
-6
lines changed

Sources/Filters/General/TubeFilter/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -635,14 +635,10 @@ function vtkTubeFilter(publicAPI, model) {
635635
let numStrips = 0;
636636
const inLinesData = inLines.getData();
637637
let npts = inLinesData[0];
638-
const sidesShareVerticesMultiplier = model.sidesShareVertices ? 1 : 2;
639638
for (let i = 0; i < inLinesData.length; i += npts + 1) {
640-
numNewPts += sidesShareVerticesMultiplier * npts * model.numberOfSides;
641-
if (model.capping) {
642-
numNewPts += 2 * model.numberOfSides;
643-
}
644-
645639
npts = inLinesData[i];
640+
641+
numNewPts = computeOffset(numNewPts, npts);
646642
numStrips +=
647643
(2 * npts + 1) * Math.ceil(model.numberOfSides / model.onRatio);
648644
if (model.capping) {

0 commit comments

Comments
 (0)