Lossless and lossy Obj Compression Utility in Lua
lua compress.lua -f test.obj
-f
- specify the file to compress
-o
- specify the filename of the output (default is to overwrite original file)
-precision
- Specify the precision of decimals to output for all values (1-6). Default is 6, smallest file size is 1. Typically a good number for most use cases is 2 or 3. This is a lossy operation!
-comments
- Keep comments in the file. (removed by default)
-h
- Show this usage information