Python wrapper for running instances of trisurf-ng
Samo Penic
2019-08-14 8f46a7926d3517bf5405fc5a8c723e6cc318ad58
trisurf/VTKRendering.py
@@ -4,7 +4,7 @@
   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):
@@ -182,3 +182,16 @@
      #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')