From 8f46a7926d3517bf5405fc5a8c723e6cc318ad58 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 14 Aug 2019 21:34:31 +0000 Subject: [PATCH] Added missing function to wrapper.py --- trisurf/VTKRendering.py | 13 +++++++++++++ 1 files changed, 13 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') + -- Gitblit v1.9.3