ref: 996690494d739fbea436b89fb72a9da0ce31d8b7
parent: a8c810950efd587b9f46d6ddfa0de4930939ae9f
author: rodri <rgl@antares-labs.eu>
date: Sat Jun 14 06:58:14 EDT 2025
plot3: fix axis scales
--- a/plot3.c
+++ b/plot3.c
@@ -175,16 +175,16 @@
line.v[0].c = line.v[1].c = Pt3(0.4,0.4,0.4,1);
/* x scale */
- line.v[0].p = Pt3(smallestbbox(x), smallestbbox(y), biggestbbox(z), 1);
- line.v[1].p = addpt3(line.v[0].p, Vec3(biggestbbox(x), 0, 0));
+ line.v[0].p = Pt3(smallestbbox(x), smallestbbox(y), smallestbbox(z), 1);
+ line.v[1].p = Pt3(biggestbbox(x), smallestbbox(y), smallestbbox(z), 1);
mdl->addprim(mdl, line);
/* y scale */
- line.v[1].p = addpt3(line.v[0].p, Vec3(0, biggestbbox(y), 0));
+ line.v[1].p = Pt3(smallestbbox(x), biggestbbox(y), smallestbbox(z), 1);
mdl->addprim(mdl, line);
/* z scale */
- line.v[1].p = addpt3(line.v[0].p, Vec3(0, 0, smallestbbox(z)));
+ line.v[1].p = Pt3(smallestbbox(x), smallestbbox(y), biggestbbox(z), 1);
mdl->addprim(mdl, line);
}
--
⑨