mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-12-22 13:29:46 +05:30
Added getter functions for mesh header attributes
This commit is contained in:
parent
a8d2cfeb4a
commit
cb96add3f2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user