Added getnormals()

This commit is contained in:
_ 2018-05-13 03:43:50 -07:00
parent 8fdc05b9c0
commit 650178f3a4

View File

@ -368,6 +368,10 @@ class MEsh:
length = self.cstruct.b.contents.bd.contents.numVertex
return self.cstruct.b.contents.vd.positions[:length]
def getnormals(self):
length = self.cstruct.b.contents.bd.contents.numVertex
return self.cstruct.b.contents.vd.normals[:length]
#--------------------------------------+
# Regular Python
#--------------------------------------+
@ -458,6 +462,9 @@ if __name__ == "__main__":
p = m.getpositions()
for point in p:
print(point)
n = m.getnormals()
for point in n:
print(point)
#---------------------------------------+
# main()
mainx()