Python wrapper for running instances of trisurf-ng
Samo Penic
2017-09-17 83999e3246b2a977f79332ceae3449922d2dae95
Added extended class RenderVTUFile from Renderer in VTKRendering.
2 files modified
17 ■■■■■ changed files
trisurf/VTKRendering.py 13 ●●●●● patch | view | raw | blame | history
trisurf/wrapper.py 4 ●●●● patch | view | raw | blame | history
trisurf/VTKRendering.py
@@ -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')
trisurf/wrapper.py
@@ -201,3 +201,7 @@
class ts_cluster_list(Structure):
    _fields_=[('n',c_uint),('poly',POINTER(POINTER(ts_cluster)))]
ts=CDLL('libtrisurf.so')