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 dfbee4c commit 25e9a0eCopy full SHA for 25e9a0e
1 file changed
Sources/Filters/Sources/CylinderSource/index.js
@@ -154,6 +154,11 @@ function vtkCylinderSource(publicAPI, model) {
154
.translate(...model.center.map((c) => c * -1))
155
.apply(points);
156
157
+ vtkMatrixBuilder
158
+ .buildFromRadian()
159
+ .rotateFromDirections([0, 1, 0], model.direction)
160
+ .apply(normalsData);
161
+
162
const dataset = outData[0]?.initialize() || vtkPolyData.newInstance();
163
dataset.getPoints().setData(points, 3);
164
dataset.getPolys().setData(polys, 1);
0 commit comments