Changes between Version 16 and Version 17 of Examples/Brain
- Timestamp:
- 04/11/17 15:10:09 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Examples/Brain
v16 v17 256 256 keyFrame2.ViewUp = [-0.981, 0.0255, -0.193] 257 257 keyFrame2.ParallelScale = 0.8516115354228021 258 # create key frame 2258 # create key frame 3 259 259 keyFrame3.KeyTime = 1.0 260 260 keyFrame3.Position = [-0.0237, -0.092, 0.1564] … … 283 283 === Animation of Color and Opacity 284 284 As seen above, the color and opacity maps are stored in Python as lists. 285 Given a start and a end color/opacity list, it is very easy to implement a smallpython function to calculate a linear interpolation. In the following example, images of interpolated opacity values are rendered in 30 steps.285 Given a start and a end color/opacity list, it is very easy to implement a python function to calculate a linear interpolation. In the following example, images of interpolated opacity values are rendered in 30 steps. 286 286 {{{ 287 287 #!python … … 321 321 Not only the data source, but also the output of !ParaView filters can be visualized. In this example we will use the !ExtractSubset filter to visualize a smaller part of the whole grid. 322 322 The input of the !ExtractSubset has to be connected to the output of the XDMF reader. 323 Then the scripts animates the volume of interest in 81 steps, fading away slices from the top and bottom side of the grid. At the end about 70 slices located in the middle of the grid are visible.323 Then the scripts animates the volume of interest in 81 steps, fading away slices from the top and bottom side of the grid. At the end about 70 slices located in the middle of the original grid are visible. 324 324 325 325 {{{