discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Import STL binary files

JD
Jerry Davis
Sun, Jun 7, 2015 1:51 AM

I downloaded something from Thingiverse, and wanted to import it into
OpenSCAD, and it won't import.

I looked at the documentation, and I couldn't find anything saying that
importing binary STL files wasn't possible.

Would this be a bug, or it just doesn't work?

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous

If writing good code requires very little comments, then writing really
excellent code requires no comments at all!
- Ken Thompson

I downloaded something from Thingiverse, and wanted to import it into OpenSCAD, and it won't import. I looked at the documentation, and I couldn't find anything saying that importing binary STL files wasn't possible. Would this be a bug, or it just doesn't work? Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov *I* *f you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. *- Anonymous *If writing good code requires very little comments, then writing really excellent code requires no comments at all!*- Ken Thompson
TP
Torsten Paul
Sun, Jun 7, 2015 12:18 PM

On 06/07/2015 03:51 AM, Jerry Davis wrote:

I downloaded something from Thingiverse, and wanted to import it
into OpenSCAD, and it won't import.

How? What happens? How did you import exactly? What OpenSCAD version
is it?

Is there a difference when using F5 vs. F6?
( https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F )

I looked at the documentation, and I couldn't find anything saying
that importing binary STL files wasn't possible.

The import handles both binary and ascii STL's.

Would this be a bug, or it just doesn't work?

Without further information, I'd say the file is broken. There's a
small chance it might be a bug, but to check that, the actual file
is needed.

ciao,
Torsten.

On 06/07/2015 03:51 AM, Jerry Davis wrote: > I downloaded something from Thingiverse, and wanted to import it > into OpenSCAD, and it won't import. > How? What happens? How did you import exactly? What OpenSCAD version is it? Is there a difference when using F5 vs. F6? ( https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F ) > I looked at the documentation, and I couldn't find anything saying > that importing binary STL files wasn't possible. > The import handles both binary and ascii STL's. > Would this be a bug, or it just doesn't work? > Without further information, I'd say the file is broken. There's a small chance it might be a bug, but to check that, the actual file is needed. ciao, Torsten.
I
Ivo
Sun, Jun 7, 2015 12:52 PM

tp3 wrote

The import handles both binary and ascii STL's.

That isn't actually in the manual. How can we fix the manual ? Is it in
github ?

Cheers, Ivo

--
View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12821.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

tp3 wrote > The import handles both binary and ascii STL's. That isn't actually in the manual. How can we fix the manual ? Is it in github ? Cheers, Ivo -- View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12821.html Sent from the OpenSCAD mailing list archive at Nabble.com.
TP
Torsten Paul
Sun, Jun 7, 2015 3:14 PM

On 06/07/2015 02:52 PM, Ivo wrote:

tp3 wrote

The import handles both binary and ascii STL's.

That isn't actually in the manual. How can we fix the manual ? Is it in
github ?

It's on wikibooks: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual

Actually from user perspective I don't see much need to explain this,
OpenSCAD is supposed to import STL files. How those are generated or
internally structured should not matter and users should not need to
care.
I guess the error handling could be improved a lot, especially the
fact that most import errors are only shown once and then "cached" is
not very user friendly. I think there's already an issue on github
for that...
But if you have a good idea how to explain the details, it's easy to
add to the wiki based manual.

ciao,
Torsten.

On 06/07/2015 02:52 PM, Ivo wrote: > tp3 wrote >> The import handles both binary and ascii STL's. > > That isn't actually in the manual. How can we fix the manual ? Is it in > github ? > It's on wikibooks: https://en.wikibooks.org/wiki/OpenSCAD_User_Manual Actually from user perspective I don't see much need to explain this, OpenSCAD is supposed to import STL files. How those are generated or internally structured should not matter and users should not need to care. I guess the error handling could be improved a lot, especially the fact that most import errors are only shown once and then "cached" is not very user friendly. I think there's already an issue on github for that... But if you have a good idea how to explain the details, it's easy to add to the wiki based manual. ciao, Torsten.
M
MichaelAtOz
Sun, Jun 7, 2015 10:50 PM

Wiki updated.


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12839.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Wiki updated. ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12839.html Sent from the OpenSCAD mailing list archive at Nabble.com.
JD
Jerry Davis
Mon, Jun 8, 2015 12:46 AM

I am running version: version 2015.04.21 (git 167b882)

on osx yosemite (10.10.3)

I downloaded the STL files from this:
http://www.thingiverse.com/thing:798225/#files

Of, course Jp1.stl loaded ok. It is ascii
None of the rest of them did.

Both Meshlab and Blender loaded them fine.

Jerry

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous

If writing good code requires very little comments, then writing really
excellent code requires no comments at all!
- Ken Thompson

On Sun, Jun 7, 2015 at 5:18 AM, Torsten Paul Torsten.Paul@gmx.de wrote:

On 06/07/2015 03:51 AM, Jerry Davis wrote:

I downloaded something from Thingiverse, and wanted to import it

into OpenSCAD, and it won't import.

How? What happens? How did you import exactly? What OpenSCAD version

is it?

Is there a difference when using F5 vs. F6?
(
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F
)

I looked at the documentation, and I couldn't find anything saying

that importing binary STL files wasn't possible.

The import handles both binary and ascii STL's.

Would this be a bug, or it just doesn't work?

Without further information, I'd say the file is broken. There's a

small chance it might be a bug, but to check that, the actual file
is needed.

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I am running version: version 2015.04.21 (git 167b882) on osx yosemite (10.10.3) I downloaded the STL files from this: http://www.thingiverse.com/thing:798225/#files Of, course Jp1.stl loaded ok. It is ascii None of the rest of them did. Both Meshlab and Blender loaded them fine. Jerry Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov *I* *f you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. *- Anonymous *If writing good code requires very little comments, then writing really excellent code requires no comments at all!*- Ken Thompson On Sun, Jun 7, 2015 at 5:18 AM, Torsten Paul <Torsten.Paul@gmx.de> wrote: > On 06/07/2015 03:51 AM, Jerry Davis wrote: > >> I downloaded something from Thingiverse, and wanted to import it >> > > into OpenSCAD, and it won't import. > >> >> How? What happens? How did you import exactly? What OpenSCAD version > is it? > > Is there a difference when using F5 vs. F6? > ( > https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F > ) > > I looked at the documentation, and I couldn't find anything saying >> > > that importing binary STL files wasn't possible. > >> >> The import handles both binary and ascii STL's. > > Would this be a bug, or it just doesn't work? >> >> Without further information, I'd say the file is broken. There's a > small chance it might be a bug, but to check that, the actual file > is needed. > > ciao, > Torsten. > > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
JD
Jerry Davis
Mon, Jun 8, 2015 1:41 AM

I just downloaded the latest version.
Same thing. No hits, no runs, no errors.

Saved backup file:
/Users/jdawg/Documents/OpenSCAD/backups/unsaved-backup-xJL95893.scad

Compiling design (CSG Tree generation)...

Compiling design (CSG Products generation)...

Geometries in cache: 1

Geometry cache size in bytes: 47384

CGAL Polyhedrons in cache: 0

CGAL cache size in bytes: 0

Compiling design (CSG Products normalization)...

Normalized CSG tree has 1 elements

Compile and preview finished.

Total rendering time: 0 hours, 0 minutes, 0 seconds

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous

If writing good code requires very little comments, then writing really
excellent code requires no comments at all!
- Ken Thompson

On Sun, Jun 7, 2015 at 5:46 PM, Jerry Davis jdawgaz@gmail.com wrote:

I am running version: version 2015.04.21 (git 167b882)

on osx yosemite (10.10.3)

I downloaded the STL files from this:
http://www.thingiverse.com/thing:798225/#files

Of, course Jp1.stl loaded ok. It is ascii
None of the rest of them did.

Both Meshlab and Blender loaded them fine.

Jerry

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous

If writing good code requires very little comments, then writing really
excellent code requires no comments at all!
- Ken Thompson

On Sun, Jun 7, 2015 at 5:18 AM, Torsten Paul Torsten.Paul@gmx.de wrote:

On 06/07/2015 03:51 AM, Jerry Davis wrote:

I downloaded something from Thingiverse, and wanted to import it

into OpenSCAD, and it won't import.

How? What happens? How did you import exactly? What OpenSCAD version

is it?

Is there a difference when using F5 vs. F6?
(
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F
)

I looked at the documentation, and I couldn't find anything saying

that importing binary STL files wasn't possible.

The import handles both binary and ascii STL's.

Would this be a bug, or it just doesn't work?

Without further information, I'd say the file is broken. There's a

small chance it might be a bug, but to check that, the actual file
is needed.

ciao,
Torsten.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I just downloaded the latest version. Same thing. No hits, no runs, no errors. Saved backup file: /Users/jdawg/Documents/OpenSCAD/backups/unsaved-backup-xJL95893.scad Compiling design (CSG Tree generation)... Compiling design (CSG Products generation)... Geometries in cache: 1 Geometry cache size in bytes: 47384 CGAL Polyhedrons in cache: 0 CGAL cache size in bytes: 0 Compiling design (CSG Products normalization)... Normalized CSG tree has 1 elements Compile and preview finished. Total rendering time: 0 hours, 0 minutes, 0 seconds Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov *I* *f you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. *- Anonymous *If writing good code requires very little comments, then writing really excellent code requires no comments at all!*- Ken Thompson On Sun, Jun 7, 2015 at 5:46 PM, Jerry Davis <jdawgaz@gmail.com> wrote: > I am running version: version 2015.04.21 (git 167b882) > > on osx yosemite (10.10.3) > > I downloaded the STL files from this: > http://www.thingiverse.com/thing:798225/#files > > Of, course Jp1.stl loaded ok. It is ascii > None of the rest of them did. > > Both Meshlab and Blender loaded them fine. > > Jerry > > > Jerry > > -- > Extra Ham Operator: K7AZJ > Registered Linux User: 275424 > Raspberry Pi and Arduino developer > > > *The most exciting phrase to hear in science - the one that heralds new > discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov > > *I* > *f you give someone a program, you will frustrate them for a day; if you > teach them how to program, you will frustrate them for a lifetime. *- > Anonymous > > > *If writing good code requires very little comments, then writing really > excellent code requires no comments at all!*- Ken Thompson > > On Sun, Jun 7, 2015 at 5:18 AM, Torsten Paul <Torsten.Paul@gmx.de> wrote: > >> On 06/07/2015 03:51 AM, Jerry Davis wrote: >> >>> I downloaded something from Thingiverse, and wanted to import it >>> >> > into OpenSCAD, and it won't import. >> >>> >>> How? What happens? How did you import exactly? What OpenSCAD version >> is it? >> >> Is there a difference when using F5 vs. F6? >> ( >> https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_only_showing_up_with_F5_but_not_F6.3F >> ) >> >> I looked at the documentation, and I couldn't find anything saying >>> >> > that importing binary STL files wasn't possible. >> >>> >>> The import handles both binary and ascii STL's. >> >> Would this be a bug, or it just doesn't work? >>> >>> Without further information, I'd say the file is broken. There's a >> small chance it might be a bug, but to check that, the actual file >> is needed. >> >> ciao, >> Torsten. >> >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > >
M
MichaelAtOz
Mon, Jun 8, 2015 6:29 AM

I downloaded Jp2.stl (binary)

I imported it OK. It is way off center, use the View-All button to find it.

I assume the same issue with the others.

http://forum.openscad.org/file/n12847/Jp2.jpg


Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/

View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12847.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

I downloaded Jp2.stl (binary) I imported it OK. It is way off center, use the View-All button to find it. I assume the same issue with the others. <http://forum.openscad.org/file/n12847/Jp2.jpg> ----- Unless specifically shown otherwise above, my contribution is in the Public Domain; To the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ -- View this message in context: http://forum.openscad.org/Import-STL-binary-files-tp12813p12847.html Sent from the OpenSCAD mailing list archive at Nabble.com.
JD
Jerry Davis
Mon, Jun 8, 2015 2:04 PM

duh. I see them all. they are at about 800 mm.
non issue. Well, now I know what VIEW ALL means!

Jerry

--
Extra Ham Operator: K7AZJ
Registered Linux User: 275424
Raspberry Pi and Arduino developer

The most exciting phrase to hear in science - the one that heralds new
discoveries - is not "Eureka!" but "That's funny...".
- Isaac. Asimov

I
*f you give someone a program, you will frustrate them for a day; if you
teach them how to program, you will frustrate them for a lifetime. *-
Anonymous

If writing good code requires very little comments, then writing really
excellent code requires no comments at all!
- Ken Thompson

On Sun, Jun 7, 2015 at 11:29 PM, MichaelAtOz oz.at.michael@gmail.com
wrote:

I downloaded Jp2.stl (binary)

I imported it OK. It is way off center, use the View-All button to find it.

I assume the same issue with the others.

http://forum.openscad.org/file/n12847/Jp2.jpg


Unless specifically shown otherwise above, my contribution is in the
Public Domain; To the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. This work is
published globally via the internet. :) Inclusion of works of previous
authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it!
http://www.ourfairdeal.org/

View this message in context:
http://forum.openscad.org/Import-STL-binary-files-tp12813p12847.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

duh. I see them all. they are at about 800 mm. non issue. Well, now I know what VIEW ALL means! Jerry -- Extra Ham Operator: K7AZJ Registered Linux User: 275424 Raspberry Pi and Arduino developer *The most exciting phrase to hear in science - the one that heralds new discoveries - is not "Eureka!" but "That's funny...".*- Isaac. Asimov *I* *f you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime. *- Anonymous *If writing good code requires very little comments, then writing really excellent code requires no comments at all!*- Ken Thompson On Sun, Jun 7, 2015 at 11:29 PM, MichaelAtOz <oz.at.michael@gmail.com> wrote: > I downloaded Jp2.stl (binary) > > I imported it OK. It is way off center, use the View-All button to find it. > > I assume the same issue with the others. > > <http://forum.openscad.org/file/n12847/Jp2.jpg> > > > > ----- > Unless specifically shown otherwise above, my contribution is in the > Public Domain; To the extent possible under law, I have waived all > copyright and related or neighbouring rights to this work. This work is > published globally via the internet. :) Inclusion of works of previous > authors is not included in the above. > > The TPP is no simple “trade agreement.” Fight it! > http://www.ourfairdeal.org/ > -- > View this message in context: > http://forum.openscad.org/Import-STL-binary-files-tp12813p12847.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >
MK
Marius Kintel
Mon, Jun 8, 2015 4:03 PM

On Jun 8, 2015, at 10:04 AM, Jerry Davis jdawgaz@gmail.com wrote:

duh. I see them all. they are at about 800 mm.
non issue. Well, now I know what VIEW ALL means!

hm, perhaps auto-View All on load would make sense :)

-Marius

On Jun 8, 2015, at 10:04 AM, Jerry Davis <jdawgaz@gmail.com> wrote: > duh. I see them all. they are at about 800 mm. > non issue. Well, now I know what VIEW ALL means! > hm, perhaps auto-View All on load would make sense :) -Marius