From 058e395735553c0768983ee1d15edf1f13ffa00e Mon Sep 17 00:00:00 2001 From: _ <_> Date: Thu, 17 May 2018 16:30:01 -0700 Subject: [PATCH] Added consistent naming for methods for geo --- bindings/__test__.py | 2 +- bindings/py3devil1geo.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/__test__.py b/bindings/__test__.py index b3bf85d..df445d8 100755 --- a/bindings/__test__.py +++ b/bindings/__test__.py @@ -94,7 +94,7 @@ if __name__ == "__main__": gh = pyGeoHeader(data) gh.show() print("-------------") - print(gh.getmeshno()) + print(gh.getnummesh()) print(gh.getunknownb()) print(gh.getunknownc()) print(gh.getunknownd()) diff --git a/bindings/py3devil1geo.py b/bindings/py3devil1geo.py index 5757b6a..43c4803 100644 --- a/bindings/py3devil1geo.py +++ b/bindings/py3devil1geo.py @@ -158,7 +158,7 @@ class pyGeoHeader: def show(self): devil1geo.printheader(self.cstruct) - def getmeshno(self): + def getnummesh(self): return self.cstruct.contents.numMesh def getunknownb(self): @@ -190,7 +190,7 @@ class pyMeshHeader: def show(self): devil1geo.printmeshheader(self.cstruct) - def getbatchno(self): + def getnumbatch(self): return self.cstruct.contents.numBatch def getnumvertex(self): @@ -211,7 +211,7 @@ class pyMesh: if filedata: mh = pyMeshHeader(i, filedata) # 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( ctypes.create_string_buffer(memsize), ctypes.POINTER(Batch))