mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2026-10-20 17:27:58 +05:30
Added getnormals()
This commit is contained in:
1 parent
8fdc05b9c0
commit
650178f3a4
1 file changed
+7
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user