From 83999e3246b2a977f79332ceae3449922d2dae95 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Sun, 17 Sep 2017 21:06:13 +0000 Subject: [PATCH] Added extended class RenderVTUFile from Renderer in VTKRendering. --- trisurf/wrapper.py | 4 ++++ trisurf/VTKRendering.py | 13 +++++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/trisurf/VTKRendering.py b/trisurf/VTKRendering.py index e2223d6..6f39604 100644 --- a/trisurf/VTKRendering.py +++ b/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') + diff --git a/trisurf/wrapper.py b/trisurf/wrapper.py index 66e4548..7fb1cca 100644 --- a/trisurf/wrapper.py +++ b/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') -- Gitblit v1.9.3