mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-29 10:12:02 +05:30
Added consistent naming for methods for geo
This commit is contained in:
parent
0c86779304
commit
058e395735
@ -94,7 +94,7 @@ if __name__ == "__main__":
|
|||||||
gh = pyGeoHeader(data)
|
gh = pyGeoHeader(data)
|
||||||
gh.show()
|
gh.show()
|
||||||
print("-------------")
|
print("-------------")
|
||||||
print(gh.getmeshno())
|
print(gh.getnummesh())
|
||||||
print(gh.getunknownb())
|
print(gh.getunknownb())
|
||||||
print(gh.getunknownc())
|
print(gh.getunknownc())
|
||||||
print(gh.getunknownd())
|
print(gh.getunknownd())
|
||||||
|
@ -158,7 +158,7 @@ class pyGeoHeader:
|
|||||||
def show(self):
|
def show(self):
|
||||||
devil1geo.printheader(self.cstruct)
|
devil1geo.printheader(self.cstruct)
|
||||||
|
|
||||||
def getmeshno(self):
|
def getnummesh(self):
|
||||||
return self.cstruct.contents.numMesh
|
return self.cstruct.contents.numMesh
|
||||||
|
|
||||||
def getunknownb(self):
|
def getunknownb(self):
|
||||||
@ -190,7 +190,7 @@ class pyMeshHeader:
|
|||||||
def show(self):
|
def show(self):
|
||||||
devil1geo.printmeshheader(self.cstruct)
|
devil1geo.printmeshheader(self.cstruct)
|
||||||
|
|
||||||
def getbatchno(self):
|
def getnumbatch(self):
|
||||||
return self.cstruct.contents.numBatch
|
return self.cstruct.contents.numBatch
|
||||||
|
|
||||||
def getnumvertex(self):
|
def getnumvertex(self):
|
||||||
@ -211,7 +211,7 @@ class pyMesh:
|
|||||||
if filedata:
|
if filedata:
|
||||||
mh = pyMeshHeader(i, filedata)
|
mh = pyMeshHeader(i, filedata)
|
||||||
# allocate memory for the size of batch * number of batches
|
# allocate memory for the size of batch * number of batches
|
||||||
memsize = ctypes.sizeof(Batch) * mh.getbatchno()
|
memsize = ctypes.sizeof(Batch) * mh.getnumbatch()
|
||||||
self.cstruct.b = ctypes.cast(
|
self.cstruct.b = ctypes.cast(
|
||||||
ctypes.create_string_buffer(memsize),
|
ctypes.create_string_buffer(memsize),
|
||||||
ctypes.POINTER(Batch))
|
ctypes.POINTER(Batch))
|
||||||
|
Loading…
Reference in New Issue
Block a user