mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-29 02:02:04 +05:30
Added getnormals()
This commit is contained in:
parent
8fdc05b9c0
commit
650178f3a4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user