How to generate the OpenSCAD code from imported STL file

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

How to generate the OpenSCAD code from imported STL file

Cowski
This post has NOT been accepted by the mailing list yet.
Good morning,

I successfully imported a STL file into OpenSCAD using the "import("")" function.

But what I'm trying to do is get to the code behind this so I may edit it.

I did do some research to try to "generate SCAD code" and "openscad generate code" (in Google of course) and nothing really was of help.

Are there steps I have to take to allow OpenSCAD to generate the code beneath the STL file I imported into it?

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: How to generate the OpenSCAD code from imported STL file

MichaelAtOz
Administrator
Cowski wrote
Good morning,

I successfully imported a STL file into OpenSCAD using the "import("")" function.

But what I'm trying to do is get to the code behind this so I may edit it.

I did do some research to try to "generate SCAD code" and "openscad generate code" (in Google of course) and nothing really was of help.

Are there steps I have to take to allow OpenSCAD to generate the code beneath the STL file I imported into it?

Thanks!
Hi Cowski,

Your post is still flagged as "This post has NOT been accepted by the mailing list yet", so nobody gets it unless they look.
You need to subscribe to the mailing list, and CLICK THE LINK in the registration email (check your spam folder).

So I quoted it here for others to see.

So what did you do to that cat in your avatar?

Re your Q.
Unfortunately you have it reversed.
OpenSCAD is used to program CSG, which can then produce a STL.
There may be esoteric methods others may mention, but it is not straight forward.
You can import() a STL then do CSG to manipulate it, but not access the geometry as a programmable set of data.

So for example you could:

difference() {
  import("something");
  cube(10);
}
Admin - PM me if you need anything,
or if I've done something stupid...

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.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: How to generate the OpenSCAD code from imported STL file

Cowski
This post has NOT been accepted by the mailing list yet.
I'm at work but will reply in regards to your first question...

That is "OMG Kitty"

OMG Kitty

Thanks for the reply....will dig into this at home later.  
Reply | Threaded
Open this post in threaded view
|

Re: How to generate the OpenSCAD code from imported STL file

doug.moen
In reply to this post by MichaelAtOz
Here is an STL to OpenSCAD converter on thingiverse:

https://www.thingiverse.com/thing:62666

On Thursday, 15 June 2017, MichaelAtOz <[hidden email]> wrote:
Cowski wrote
> Good morning,
>
> I successfully imported a STL file into OpenSCAD using the "import("")"
> function.
<http://forum.openscad.org/file/n21691/OpenSCAD_screenshot.jpg>
> But what I'm trying to do is get to the code behind this so I may edit it.
>
> I did do some research to try to "generate SCAD code" and "openscad
> generate code" (in Google of course) and nothing really was of help.
>
> Are there steps I have to take to allow OpenSCAD to generate the code
> beneath the STL file I imported into it?
>
> Thanks!

Hi Cowski,

Your post is still flagged as "This post has NOT been accepted by the
mailing list yet", so nobody gets it unless they look.
You need to subscribe to the  mailing list
<http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1>  ,
and CLICK THE LINK in the registration email (check your spam folder).

So I quoted it here for others to see.

So what did you do to that cat in your avatar?

Re your Q.
Unfortunately you have it reversed.
OpenSCAD is used to program  CSG
<https://en.wikipedia.org/wiki/Constructive_solid_geometry>  , which can
then produce a STL.
There may be esoteric methods others may mention, but it is not straight
forward.
You can import() a STL then do CSG to manipulate it, but not access the
geometry as a programmable set of data.

So for example you could:

difference() {
  import("something");
  cube(10);
}




-----
Admin - PM me if you need anything, or if I've done something stupid...

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.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
View this message in context: http://forum.openscad.org/How-to-generate-the-OpenSCAD-code-from-imported-STL-file-tp21691p21693.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;Discuss@lists.openscad.org&#39;)">Discuss@...
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org