| | |
| | | from vtk import * |
| | | except: |
| | | print("Vtk rendering works if you manually install vtk7 for python3") |
| | | exit(1) |
| | | # exit(1) |
| | | |
| | | class MultiRender: |
| | | def __init__(self,args,host): |
| | |
| | | #self.render.RemoveActor(self.actor) |
| | | |
| | | return |
| | | |
| | | |
| | | class RenderVTUFile(Renderer): |
| | | def __init__(self,args,filename=None,scalar_field='vertices_idx'): |
| | | self.filename=filename |
| | | Renderer.__init__(self,args,host=None, run=None, timestep=-1, scalar_field=scalar_field) |
| | | |
| | | def lastVTU(self): |
| | | if(self.filename): |
| | | return self.filename |
| | | else: |
| | | raise Exception('No file specified') |
| | | |