Changed matrix object names to be more natural. Fixed a bug in the matrix projection math.
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user