From 5c3143e7b7d0979d6eed07b6dfbe9f214159bdbb Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Tue, 31 May 2016 19:42:00 +0000
Subject: [PATCH] Use nucleus displaced centre in vertex move

---
 python/parse_vtu.py |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/python/parse_vtu.py b/python/parse_vtu.py
index f077190..3f864c3 100755
--- a/python/parse_vtu.py
+++ b/python/parse_vtu.py
@@ -1,10 +1,18 @@
 #!/usr/bin/python3
 import xml.etree.ElementTree as ET
-
+import base64
+import zlib
 
 tree = ET.parse('../src/timestep_000000.vtu')
 root = tree.getroot()
 trisurf=root.find('trisurf')
+version=root.find('trisurfversion')
+print(version.text);
 print(trisurf.items())
 
+#xml=zlib.decompress(base64.b64decode(trisurf.text))
+#xml=trisurf.text
+#print(xml)
 
+#tree2=ET.ElementTree(ET.fromstring(str(xml))
+#tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>"))

--
Gitblit v1.9.3