File size: 602 Bytes
a8b7b1e
 
 
 
 
 
 
 
6baf440
1
2
3
4
5
6
7
8
9
Please generate a ParaView Python script for the following operations. 
Read in the file named "ml-slice-iso/data/ml-slice-iso.vtk". 
Slice the volume in a plane parallel to the y-z plane at x=0.
Take a contour through the slice at the value 0.5. 
Color the contour red. Use a white background.
Rotate the view to look at the +x direction. 
Save a screenshot of the result in the filename "ml-slice-iso/results/{agent_mode}/ml-slice-iso.png". 
The rendered view and saved screenshot should be 1920 x 1080 pixels.
Finally, save the ParaView state as "ml-slice-iso/results/{agent_mode}/ml-slice-iso.pvsm"