to make `filter2` use the output of `filter1` as input. Your elevation filter should connect directly to the datasource so e.g. set this filter's input connection to the output port of the data source.
to make `filter2` use the output of `filter1` as input. Your elevation filter should connect directly to the datasource so e.g. set this filter's input connection to the output port of the data source. Save your submission code as `task2.py`.
(Note: It may be a bit confusing that all that is needed to connect some filters; when is the actual computation happening? VTK actually does this automatically. Basically, the `vtkRenderWindow` used in the code notices that a new image must be drawn and invokes the filters in reverse order. Intermediate results are cached, so as long as no parameters are changed, everything is computed only once. We'll look at this in more detail in a future homework.)
**Summary of Tasks:** Create an elevation filter based on the y-axis and connect it to the previous and following filters and mappers. What can you infer from the default colormap?
**Summary of Tasks:** Create an elevation filter based on the y-axis and connect it to the previous and following filters and mappers, then save your code in `task2.py`. What can you infer from the default colormap?
The resulting renderview should look like the following:
...
...
@@ -70,7 +70,7 @@ The resulting renderview should look like the following:
<imgsrc="sol_task_3.jpg"width="600">.
**Summary of Tasks:** Create a contour filter and connect it to the previous filters and following mappers. Extract 20 isolines between 0.4 and 0.5. What problem could arise if you want to approximate the isovalue?
**Summary of Tasks:** Create a contour filter and connect it to the previous filters and following mappers. Extract 20 isolines between 0.4 and 0.5. Save your submission code as `task3.py`. What problem could arise if you want to approximate the isovalue?