Changed matrix object names to be more natural. Fixed a bug in the matrix projection math.

This commit is contained in:
2020-07-15 09:12:09 -05:00
parent 34f5917359
commit 4ef62ab916
3 changed files with 127 additions and 85 deletions
+4 -4
View File
@@ -38,8 +38,8 @@ class Mesh:
tmp = line.split(' ')
# Subtract one because the obj file isn't zero indexed.
row0 = self.vertices[int(tmp[1]) - 1]
row1 = self.vertices[int(tmp[2]) - 1]
row2 = self.vertices[int(tmp[3]) - 1]
row1 = self.vertices[int(tmp[1]) - 1]
row2 = self.vertices[int(tmp[2]) - 1]
row3 = self.vertices[int(tmp[3]) - 1]
self.triangles.append(Triangle(Matrix3x3(row0, row1, row2)))
self.triangles.append(Triangle(Matrix3x3(row1, row2, row3)))