File tree 2 files changed +53
-0
lines changed
2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,28 @@ <h1>Exercise 4</h1>
211
211
width =1000
212
212
class ="centObj "> < source src ="../img/membrane_animation.ogv " type ="video/ogg "> </ video > </ p >
213
213
</ div >
214
+ < div id ="exercise-5 " class ="slide section level1 ">
215
+ < h1 > Exercise 5</ h1 >
216
+ < p > In < code > Tools/Python Shell</ code > </ p >
217
+ < pre > < code > from paraview.simple import *
218
+ sphere = Sphere()
219
+ Show()
220
+ Render()
221
+ ResetCamera()</ code > </ pre >
222
+ < p > we can create a filter</ p >
223
+ < pre > < code > Hide()
224
+ shrink = Shrink()
225
+ Show()
226
+ Render()</ code > </ pre >
227
+ < p > we can branch the pipeline</ p >
228
+ < pre > < code > wireframe = ExtractEdges(Input=sphere)
229
+ Show()
230
+ Render()</ code > </ pre >
231
+ < p > or modify the properties of the sphere</ p >
232
+ < pre > < code > sphere.ThetaResolution = 100
233
+ sphere.PhiResolution = 50
234
+ Render()</ code > </ pre >
235
+ </ div >
214
236
< div id ="references " class ="slide section level1 ">
215
237
< h1 > References</ h1 >
216
238
< ul >
Original file line number Diff line number Diff line change @@ -204,6 +204,37 @@ And the output video would be
204
204
<source src =" ../img/membrane_animation.ogv " type =" video/ogg " >
205
205
</video >
206
206
207
+ ------------------
208
+
209
+ # Exercise 5
210
+
211
+ In `` Tools/Python Shell ``
212
+
213
+ from paraview.simple import *
214
+ sphere = Sphere()
215
+ Show()
216
+ Render()
217
+ ResetCamera()
218
+
219
+ we can create a filter
220
+
221
+ Hide()
222
+ shrink = Shrink()
223
+ Show()
224
+ Render()
225
+
226
+ we can branch the pipeline
227
+
228
+ wireframe = ExtractEdges(Input=sphere)
229
+ Show()
230
+ Render()
231
+
232
+ or modify the properties of the sphere
233
+
234
+ sphere.ThetaResolution = 100
235
+ sphere.PhiResolution = 50
236
+ Render()
237
+
207
238
208
239
------------------
209
240
You can’t perform that action at this time.
0 commit comments