From cb96add3f2a564e0b6d562b49edea77061839af2 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Sun, 13 May 2018 13:52:09 -0700 Subject: [PATCH] Added getter functions for mesh header attributes --- bindings/py3devil1.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bindings/py3devil1.py b/bindings/py3devil1.py index 65dfb27..47fd0bc 100755 --- a/bindings/py3devil1.py +++ b/bindings/py3devil1.py @@ -342,6 +342,18 @@ class MEShHeader: def getbatchno(self): return self.cstruct.contents.numBatch + def getnumvertex(self): + return self.cstruct.contents.numVertex + + def getunknown(self) + return hex(self.cstruct.contents.u) + + def getoffsetbatches(self): + return self.cstruct.contents.offsetBatches + + def getflags(self): + return self.cstruct.contents.flags + class MEsh: def __init__(self, i, filedata): self.cstruct = Mesh()