Skip to content

Commit

Permalink
Round skydome geometry data
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Mar 1, 2021
1 parent 508ad6f commit 2b1b3c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions export_skydome_geometry.py
Original file line number Diff line number Diff line change
@@ -57,15 +57,18 @@ def run():
pos.extend(vert.co)
nor.extend(vert.normal)

pos_rounded = [round(elem, 5) for elem in pos]
nor_rounded = [round(elem, 5) for elem in nor]

bm.free()

print("\n====================")
print(f"Calculated mesh data for object '{obj.name}':")
print(f"Indices: {list_representation(indices)}")
print("")
print(f"Positions: {list_representation(pos)}")
print(f"Positions: {list_representation(pos_rounded)}")
print("")
print(f"Normals: {list_representation(nor)}")
print(f"Normals: {list_representation(nor_rounded)}")


if __name__ == "__main__":

0 comments on commit 2b1b3c8

Please sign in to comment.