1.0.1 • Published 6 years ago

@cmloegcmluin/shape-up v1.0.1

Weekly downloads
1
License
-
Repository
github
Last release
6 years ago

shape-up

npm version

Purify geometry files.

Requires https://github.com/jonnenauha/obj-simplify.

usage

npm i @cmloegcmluin/shape-up

Put your .obj files in ./geometry.

./node_modules/.bin/shape-up

Your files will be:

1) snapped to nearby simple irrationals such as √2. 2) stripped of comments and other lines Blender's export included 3) deleted if they are the extra .mtl file Blender exports 4) minify decimal parts (.000000 becomes ) 5) actually use obj-simplify to do the smart stuff e.g. consolidate duplicate geometry