This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //load files and parse libraries | |
| var fs = require('fs'); | |
| var stl = require('stl'); | |
| //load stl file | |
| var facets = stl.toObject(fs.readFileSync('leafer-thingie.stl')); | |
| //round points to minimize usage | |
| function myRound(num) { | |
| return Math.round(num * 1000) / 1000; |
NewerOlder