Open tmpvar opened 11 years ago
@stanbellcom are you using stl.createParseStream
?
@tmpvar i was trying to, but could not find a proper example of how to use that.
could you provide one similar to this one:
var stl = require('stl')
var fs = require('fs');
var facets = stl.toObject(fs.readFileSync('/path/to/ascii.stl').toString());
fs.writeFileSync('/path/to/binary.stl', stl.fromObject(facets, true));
thanks in advance
ah, yeah the problem here is that the ascii stl files do not include the facet count which is needed to output binary. Let me give this some thought..
EDIT:
by output binary, I mean stream binary
subscribe. with RAM 1gb it gives FATAL ERROR: JS Allocation failed - process out of memory on files of about 100 mb