mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2025-05-31 14:11:42 +05:30
Added getnormals()
This commit is contained in:
@ -368,6 +368,10 @@ class MEsh:
|
|||||||
length = self.cstruct.b.contents.bd.contents.numVertex
|
length = self.cstruct.b.contents.bd.contents.numVertex
|
||||||
return self.cstruct.b.contents.vd.positions[:length]
|
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
|
# Regular Python
|
||||||
#--------------------------------------+
|
#--------------------------------------+
|
||||||
@ -458,6 +462,9 @@ if __name__ == "__main__":
|
|||||||
p = m.getpositions()
|
p = m.getpositions()
|
||||||
for point in p:
|
for point in p:
|
||||||
print(point)
|
print(point)
|
||||||
|
n = m.getnormals()
|
||||||
|
for point in n:
|
||||||
|
print(point)
|
||||||
#---------------------------------------+
|
#---------------------------------------+
|
||||||
# main()
|
# main()
|
||||||
mainx()
|
mainx()
|
||||||
|
Reference in New Issue
Block a user