Skip to content

Commit 806c74a

Browse files
committed
X Axis was flipped for some reason. Temporary Fix.
1 parent d78b6ec commit 806c74a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

convert.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
line_split=i.split()
1717
if line_split[0]=="v":
1818
points.append([float(line_split[i])*scalar for i in range(1,len(line_split))])
19+
# For some reason the x axis gets flipped. This should fix it.
20+
points[-1][0] = -points[-1][0]
1921
elif line_split[0]=="f":
20-
# Minus one, since according to wikipeadia, the .obj indexes start at 1, not 0
22+
# Minus one, since according to wikipedia, the .obj indexes start at 1, not 0
2123
faces.append([int(line_split[i].split("/")[0])-1 for i in range(1,len(line_split))])
2224

2325
# Initialize point groups to unique numbers

0 commit comments

Comments
 (0)