We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f37aed commit adf7017Copy full SHA for adf7017
Sources/Filters/General/TubeFilter/index.js
@@ -635,14 +635,10 @@ function vtkTubeFilter(publicAPI, model) {
635
let numStrips = 0;
636
const inLinesData = inLines.getData();
637
let npts = inLinesData[0];
638
- const sidesShareVerticesMultiplier = model.sidesShareVertices ? 1 : 2;
639
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
-
645
npts = inLinesData[i];
+
+ numNewPts = computeOffset(numNewPts, npts);
646
numStrips +=
647
(2 * npts + 1) * Math.ceil(model.numberOfSides / model.onRatio);
648
if (model.capping) {
0 commit comments