mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-26 00:38:55 +05:30
Added init and show for mesh headers
This commit is contained in:
parent
accf440047
commit
49a3c8f0b7
@ -321,6 +321,18 @@ class GEOHeader:
|
|||||||
devil1geo.printheader(self.cstruct)
|
devil1geo.printheader(self.cstruct)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class MEShHeader:
|
||||||
|
def __init__(self, i, filedata):
|
||||||
|
self.cstruct = ctypes.pointer(MeshHeader())
|
||||||
|
ptrofptr = ctypes.byref(self.cstruct)
|
||||||
|
if filedata:
|
||||||
|
devil1geo.getmeshheader(ptrofptr, i, filedata)
|
||||||
|
return
|
||||||
|
pass
|
||||||
|
|
||||||
|
def show(self):
|
||||||
|
devil1geo.printmeshheader(self.cstruct)
|
||||||
|
|
||||||
#--------------------------------------+
|
#--------------------------------------+
|
||||||
# Regular Python
|
# Regular Python
|
||||||
#--------------------------------------+
|
#--------------------------------------+
|
||||||
@ -404,6 +416,8 @@ if __name__ == "__main__":
|
|||||||
data = f.read()
|
data = f.read()
|
||||||
gh = GEOHeader(data)
|
gh = GEOHeader(data)
|
||||||
gh.show()
|
gh.show()
|
||||||
|
mh = MEShHeader(3, data)
|
||||||
|
mh.show()
|
||||||
|
|
||||||
#---------------------------------------+
|
#---------------------------------------+
|
||||||
# main()
|
# main()
|
||||||
|
Loading…
Reference in New Issue
Block a user