Skip to content
Snippets Groups Projects
Commit 98f0dbb8 authored by wetzels's avatar wetzels
Browse files

Update Exercise 1 (submission format)

parent 55596f3c
No related branches found
No related tags found
2 merge requests!2Exercise1,!1Exercise 1
......@@ -42,11 +42,11 @@ Generally, to connect two filters, you need to use a construction of the form
```
filter2->SetInputConnection( filter1->GetOutputPort() )
```
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:
<img src="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?
## Task 4: Export your results (2P)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment