9th July 2015, 08:34 AM | #1 |
Junior Member
Junior member
Join Date: Sep 2009
Posts: 6
|
Mac crashes opening some STL files
I have started playing with 3D printing. I have viewed one .stl file fine in AC3D (Mac) but a couple of different STL files crashes AC3D. I zipped them but they are too big to post. One is here: https://www.dropbox.com/s/5h852ekvw8...oilet.stl?dl=0 that views OK. One here: https://www.dropbox.com/s/236krhkkaf...ts%29.stl?dl=0 crashes AC3D
The /tmp/ac3dsaved.ac file contains 3 lines: Code:
AC3Db OBJECT world kids 0 |
9th July 2015, 08:10 PM | #2 |
Senior Member
Professional user
Join Date: Nov 2007
Posts: 139
|
Re: Mac crashes opening some STL files
I'm also seeing a crash on my Linux machine with his Spool Holder (something).STL
Also, the file does not show up unless I put the STL extension in lower case. Ron |
10th July 2015, 04:34 AM | #3 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,564
|
Re: Mac crashes opening some STL files
The spec for STL files - e.g. see https://en.wikipedia.org/wiki/STL_%28file_format%29
states that all ASCII still files begin with the word "solid'. Unfortunately, this binary STL file here has this word at the start of the file header, so AC3D thinks it's ASCII, therefore it's loaded as ASCII, causing the crash. I'll look at further checks that could be added to the code but do you know where the STL file came from? It might be possible to change the header. If you changed it with a binary file editor (to anything other than "solid') it would load fine. |
12th July 2015, 11:38 AM | #4 |
Junior Member
Junior member
Join Date: Sep 2009
Posts: 6
|
Re: Mac crashes opening some STL files
Yes, it's from https://printm3d.com/3dmodels. The M3D Models link will take you to their Dropbox. I don't know if the PrintM3D folks made this or if they are just using it.
|
12th July 2015, 11:46 AM | #5 |
Junior Member
Junior member
Join Date: Sep 2009
Posts: 6
|
Re: Mac crashes opening some STL files
P.S. I didn't need a binary editor. I just used the following in the colland line:
Code:
sed -e 's/solid/bolid/' Spool\ Holder\ Hook.STL>Binary\ Spool\ Holder\ Hook.stl |
Thread Tools | |
Display Modes | |
|
|