OpenSCAD currently starts the (ASCII) STL with 'solid OpenSCAD_Model', which
is the spec 'solid <name>'
I have not seen anywhere further specification of <name>, so I presume it is
anything until EOL.
The binary has an 80-character header which can be anything, except for
starting with 'solid'*.
AMF has metadata capability too.
I have been thinking OpenSCAD could use the binary header (when it supports
binary) and the <name> to store relevant info.
Thus the name would be limited to 80 chars, it & binary header start with
'OpenSCAD,', then perhaps the OpenSCAD version (? - waste of limited space -
maybe at end?), then user data (truncated to fit).
Perhaps as simple as:
$meta=<user data string>;
??
* From Wikipedia: A binary STL file has an 80-character header (which is
generally ignored, but should never begin with "solid" because that will
lead most software to assume that this is an ASCII STL file
-----
Admin - PM me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
The TPP is no simple “trade agreement.” Fight it!
http://www.ourfairdeal.org/ time is running out!
--
Sent from:
http://forum.openscad.org/_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.
The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!