Live data from Hacker News

STL File Viewing

github.com

1–10 of 66 posts

Re: STL File Viewing

#2
Github amazes me all the time with the sheer number of features they ship over a given time period. Major props! The STL rendering is an awesome feature.

Re: STL File Viewing

#3
Getting the following error when loading an STL file on GitHub:

    Invalid 'X-Frame-Options' header encountered when loading 'https://render.github.com/view/3d/?url=https%3A%2F%2Fraw.github.com%2FEmmanuelG%2FFoldaRap2%2Fmaster%2Fstl%2Flower-corners.stl': 'ALLOW-FROM: https://github.com/' is not a recognized directive. The header will be ignored.
(from https://github.com/EmmanuelG/FoldaRap2/blob/master/stl/lower...)

Running Chrome stable. Looks like a malformed cross-origin directive?

EDIT: The error is still here but it works from time to time. Some of the time I get a "Something went wrong? Reload" message, the rest of the time, the 3D model actually appears.

Re: STL File Viewing

#4
post #3

Getting the following error when loading an STL file on GitHub: Invalid 'X-Frame-Options' header encountered when loading 'https://render.github.com/view/3d/?url=https%3A%2F%2Fraw.github.com%2FEmmanuelG%2FFoldaRap2%2Fmaster%2Fstl%2Flower-corners.stl': 'ALLOW-FROM: https://github.com/' is not a recognized directive. The header will be ignored. (from https://github.com/EmmanuelG/FoldaRap2/blob/master/stl/lower... ) Run…

Chrome doesn't have support for the `ALLOW-FROM` `X-Frame-Options` option, and just complains about it when it sees it.

See: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Option...

Re: STL File Viewing

#6
This is really cool, but I always feel kind of dirty putting my STL (or any other binary) files into a git repository.

I hope GitHub adds support for scad files soon. In theory it should be pretty easy since they already support STL -- have openscad generate an STL from the scad files on the fly.

Re: STL File Viewing

#7
post #2

Github amazes me all the time with the sheer number of features they ship over a given time period. Major props! The STL rendering is an awesome feature.

It would be great if they could setup something like this in github:

http://www.youtube.com/watch?v=WhNGUJjV1zQ

This model is a combination of stl or dae files, created with a script file that puts the coordinates of the individual stl files. I'm waiting for the day that maybe github could host full simulations and we test them out in the browser. (Now that would be cool).

Re: STL File Viewing

#8
post #6

This is really cool, but I always feel kind of dirty putting my STL (or any other binary) files into a git repository. I hope GitHub adds support for scad files soon. In theory it should be pretty easy since they already support STL -- have openscad generate an STL from the scad files on the fly.

STL has an ascii variant if you like. But the real issue is placing derived files under source control. There's no good answer here. If the STL is the output of, say, a script engine that generates parametrized parts, then of course it shouldn't be in git. If it's the output of a manual process in an interactive tool (e.g. a CAD program) then the distinction is fuzzier. It's not really the "editable source", but then neither can it be automatically derived by a build system.

Re: STL File Viewing

#10
Is the source for this STL Three.JS viewer available on GitHub?

It's be nice if, when you sign in, you could change which viewer was associated with which file type. Then I could fork their viewer, add my own features, and use that.

Post reply on HN