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 |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/trisurf/VTKRendering.py b/trisurf/VTKRendering.py
index 9080a9a..6f39604 100644
--- a/trisurf/VTKRendering.py
+++ b/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')
+

--
Gitblit v1.9.3