ref: 13c2cb90d170845656a383dcd7976b10a6c03df3
parent: 29dc4d9132f87a00c1676c88b04218248e9bb2b2
author: rodri <rgl@antares-labs.eu>
date: Sat Mar 15 09:14:13 EDT 2025
readme: document stl
--- a/readme
+++ b/readme
@@ -15,6 +15,7 @@
- med: a model editor (WIP)
- solar: a solar system planetarium (WIP)
- obj: an OBJ to model(6) conversion tool
+ - stl: an STL to model(6) conversion tool
USAGE
@@ -105,6 +106,15 @@
If no dir is specified, it writes the model(6) to stdout. And if no
arguments are given, it reads the OBJ file from stdin.
+
+
+ stl [-d] [file]
+
+ This tool converts an STL file into a model(6) and writes it to stdout.
+ If no arguments are given, it reads the STL file from stdin.
+
+ Just like with obj, by default it will try to compress the resulting
+ model by deduplicating entries, to disable this feature use -d.
CUBEMAPS
--- a/stl.c
+++ b/stl.c
@@ -48,7 +48,7 @@
static void
usage(void)
{
- fprint(2, "usage: %s [stlfile]\n", argv0);
+ fprint(2, "usage: %s [-d] [stlfile]\n", argv0);
exits("usage");
}