summaryrefslogtreecommitdiff
path: root/meme/stl.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2014-09-12 05:10:57 (GMT)
committerWerner Almesberger <werner@almesberger.net>2014-09-12 05:10:57 (GMT)
commite067eb87674ba8a3cc6cea7127bb6094eee6ba93 (patch)
tree8dbfc76a2c3c5a1794d29c918decd77523be167c /meme/stl.c
parent32276ccb0791869c2b8eb8584a025a8fdcb910ae (diff)
downloadmisc-e067eb87674ba8a3cc6cea7127bb6094eee6ba93.zip
misc-e067eb87674ba8a3cc6cea7127bb6094eee6ba93.tar.gz
misc-e067eb87674ba8a3cc6cea7127bb6094eee6ba93.tar.bz2
meme/stl.c (stl_load): reverse y axis
Diffstat (limited to 'meme/stl.c')
-rw-r--r--meme/stl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/meme/stl.c b/meme/stl.c
index 20f8c3b..5409558 100644
--- a/meme/stl.c
+++ b/meme/stl.c
@@ -80,7 +80,7 @@ void stl_load(FILE *file)
if (got < 3)
break;
v[num_v] = vertex_add(
- round(x*1000), round(y*1000), round(z*1000));
+ round(x*1000), round(-y*1000), round(z*1000));
if (++num_v == 3) {
facet_add(v[0], v[1], v[2]);
state = s_endloop;