Direct .stl import?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Direct .stl import?

arshreet
Is there direct import from editor available or we have to follow the
method below?

http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/STL_Import_and_Export
--

Thanks
Arshpreet singh
http://arshpreetsingh.wordpress.com/

GOD has blessed best gifts as minds to imagine whatever we want to
Imagine and to  believe in our imagination. I believe man will fly!

DA Vinci

------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

MichaelAtOz
Administrator
That's what the manual says.

import("your.stl");

Then you can manipulate it with your code.

Admin - email* me if you need anything, or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

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.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

arshreet
On Mon, Sep 15, 2014 at 3:21 PM, MichaelAtOz <[hidden email]> wrote:

> That's what the manual says.
>
> import("your.stl");

Yes I got it but I was looking for the direct option in the Editor
like File>Import
BTW thanks for the quick reply.

Can we see the code behind .stl file?

--

Thanks
Arshpreet singh
http://arshpreetsingh.wordpress.com/

GOD has blessed best gifts as minds to imagine whatever we want to
Imagine and to  believe in our imagination. I believe man will fly!

DA Vinci

------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

MichaelAtOz
Administrator
OpenSCAD is not a 'editor' of STl or DXF, like Blender, it is a programming language which you use to manipulate those.

So you need to import .stl or .dxf then use the programming language to change them.

So the editor is not to 'edit' STLs/DXFs, it is to edit the code of the language.
Admin - email* me if you need anything, or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

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.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

kintel
Administrator
In reply to this post by arshreet
On Sep 15, 2014, at 05:25 AM, Great Avenger Singh <[hidden email]> wrote:

> Is there direct import from editor available or we have to follow the
> method below?
>
You can also drag&drop an STL file into the editor window, or onto the OpenSCAD icon, depending on platform support.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

kintel
Administrator
In reply to this post by arshreet
On Sep 15, 2014, at 05:54 AM, Great Avenger Singh <[hidden email]> wrote:
>
> Can we see the code behind .stl file?
>
We have considered implementing a way of “exploding” an imported file into OpenSCAD primitives.
In practice, this would turn an STL file into a single polyhedron() statement and a DXF file into a polygon() statement.

 -Marius

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad
http://openscad.org - https://flattr.com/thing/121566
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

MichaelAtOz
Administrator
In reply to this post by arshreet
> Can we see the code behind .stl file?

A STL can be either ASCII or binary, for ASCII you can edit it as a text file. Pretty incomprehensible tho.
Admin - email* me if you need anything, or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

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.
Obviously inclusion of works of previous authors is not included in the above.
Reply | Threaded
Open this post in threaded view
|

Re: Direct .stl import?

laird
In reply to this post by kintel
kintel wrote
On Sep 15, 2014, at 05:54 AM, Great Avenger Singh <[hidden email]> wrote:
>
> Can we see the code behind .stl file?
>
We have considered implementing a way of “exploding” an imported file into OpenSCAD primitives.
In practice, this would turn an STL file into a single polyhedron() statement and a DXF file into a polygon() statement.

 -Marius
There is http://www.thingiverse.com/thing:64709 which works surprisingly well, though of course you don't want to run a 100 MB STL file through it. The resulting OpenSCAD code isn't too useful, that I can see, except to work around Customizer's limitation that it can only execute a single OpenSCAD file, which cannot reference STL files, so you have to compile it all into a single script.