mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Added getter functions for mesh header attributes
This commit is contained in:
@ -342,6 +342,18 @@ class MEShHeader:
|
|||||||
def getbatchno(self):
|
def getbatchno(self):
|
||||||
return self.cstruct.contents.numBatch
|
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:
|
class MEsh:
|
||||||
def __init__(self, i, filedata):
|
def __init__(self, i, filedata):
|
||||||
self.cstruct = Mesh()
|
self.cstruct = Mesh()
|
||||||
|
Reference in New Issue
Block a user