Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add streaming interface #1

Open
tmpvar opened this issue Oct 20, 2013 · 4 comments
Open

add streaming interface #1

tmpvar opened this issue Oct 20, 2013 · 4 comments

Comments

@tmpvar
Copy link
Owner

tmpvar commented Oct 20, 2013

No description provided.

@stankut
Copy link

stankut commented Oct 13, 2014

subscribe.
with RAM 1gb it gives FATAL ERROR: JS Allocation failed - process out of memory on files of about 100 mb

@tmpvar
Copy link
Owner Author

tmpvar commented Oct 13, 2014

@stanbellcom are you using stl.createParseStream?

@stankut
Copy link

stankut commented Oct 14, 2014

@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

@tmpvar
Copy link
Owner Author

tmpvar commented Oct 14, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants