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

Already on GitHub? Sign in to your account

Loading Problem #73

Closed
nrosenw opened this Issue Jul 9, 2012 · 18 comments

Comments

Projects
None yet
2 participants

nrosenw commented Jul 9, 2012

Referral to my problem is below. The issue is fairly old now but there's a response to Ricola3D's answer that I need help to solve.

http://stackoverflow.com/questions/11228519/not-visualizing-ascii-stl-file-correctly

Owner

haehn commented Jul 11, 2012

I don't understand the issue?

Can you try to run python -m SimpleHTTPServer in the folder of your index.html and then access the demo through http://localhost:8000/ ? This should rule out any access denied issues.

nrosenw commented Jul 12, 2012

I'm not in a location to run that right now, I'm running Apache remotely through WinSCP but you can check this out real quick http://linuxp.idcast.com/nathan/structure/NewFile1.html , this is what I'm trying to run, these are all of the models I've tried http://linuxp.idcast.com/nathan/models .

Owner

haehn commented Jul 12, 2012

this looks all good to me (the code) but it doesn't render for me either. Could you try to put the models as a subdir in structure/ and the change the code like this:

from:
ktoolcav.file = 'http://linuxp.idcast.com/nathan/models/porsche.stl';

to:
ktoolcav.file = 'models/porsche.stl';

nrosenw commented Jul 12, 2012

Okay, I did that but same results.

Owner

haehn commented Jul 12, 2012

can you upload it so I can check it? for me it's still the old version

nrosenw commented Jul 12, 2012

And the JS file seems updated.

Owner

haehn commented Jul 12, 2012

ha! I just tried to open the porsche.stl file

104-9.stl tol 0.01 ac 0.02 solid layer 209 3DV*ê4....some binary stuff

It is not an ascii stl file anymore. I think you probably transfered these files in binary mode via ftp or something. try to transfer them as test.

it should look like
http://x.babymri.org/data/porsche.stl

nrosenw commented Jul 12, 2012

Is that what the file looked like?? Ohh, I forgot I accidentally downloaded a binary file yesterday, that must be it haha, let me change that real quick.

nrosenw commented Jul 12, 2012

Alright, a bottle should render now, still the same results, made sure it wasn't binary too haha

Owner

haehn commented Jul 12, 2012

It is text now, that's good but if you look at the file:

vertex -0.675880E+01 0.442610E+01 -0.118893E+02
^ there are 2 spaces and the parserSTL doesn't read that properly..

so you can
a) fix the X.parserSTL class
b) change the way to write the stl file by just using 1 space there
c) maybe convert the file with slicer.org which writes proper stl files

so it should work now with the porsche.stl from our selection

nrosenw commented Jul 12, 2012

Okay, I've actually taken your porsche.stl before , I'll test that again to see if it works properly and then follow your ideas

nrosenw commented Jul 12, 2012

Well, I've taken your porsche.stl to test but still doesn't seem to work. http://linuxp.idcast.com/nathan/structure/models/car.stl

nrosenw commented Jul 12, 2012

I can use the link for it, but not download it and use it.

Owner

haehn commented Jul 12, 2012

so it all works now?

nrosenw commented Jul 12, 2012

Yea, and to sum it up for anyone else who has this problem, make sure your file has one space between each x, y, and z coordinate and make sure your indentation is correct, use http://x.babymri.org/data/porsche.stl as a reference.

Owner

haehn commented Jul 12, 2012

great!

@haehn haehn closed this Jul 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment