-1

Funny question, and I am really new to this (please dont assume i know anything lol)

But I have taken a set of points and converted to a polyline (polydata) and then extruded this polydata using vtkLinearExtrusionFilter into a surface.

Now I would like to extrude that surface into a 3d solid, how can I extrude the 1st extrusion? How to properly save 1st extrusion as vtkDataObject (see error below)

TypeError:

SetInputData argument 1: method requires a vtkDataObject, a vtkLinearExtrusionFilter was provided.

273K
  • 29,503
  • 10
  • 41
  • 64

1 Answers1

0

You need to take the output of the filter, and not the filter itself. This output is a vtk data object.

first_extrusion = vtkLinearExtrusionFilter()
# set parameters ....
first_extrusion.Update()

second_extrusion = vtkLinearExtrusionFilter()
second_extrusion.SetInputData( first_extrusion.GetOutput() )
# set other parameters ...
Bertrand Gazanion
  • 705
  • 1
  • 14
  • 19