[OpenSCAD] extruding plain draws or saving plain draws into STL files.

Juan C.Cilleruelo juanc.cilleruelo at gmail.com
Fri Jul 19 03:18:43 EDT 2019


Thank you very much!!!!

It's just what I looking for!!!



/*----------  PROFILE 20X20 => ALUMINIUM PROFILE 20x20 ----------*/
    linear_extrude(height = 40, center = false, convexity = 10, twist = 0){
       projection(){
         import("PROFILE20X20_001.stl");
       }
    }




On 19/07/2019 09:11, nop head wrote:
> All those statements are true. To export and import 2D shapes you need 
> to use a 2D format like DXF or SVG.
>
> You can convert a 3D shape to 2D with projection(), so if you have a 
> flat object in an STL file you can make it 2D and then linear_extrude it.
>
> On Fri, 19 Jul 2019 at 08:04, Juan C.Cilleruelo 
> <juanc.cilleruelo at gmail.com <mailto:juanc.cilleruelo at gmail.com>> wrote:
>
>     I've discovered the next thing in OpenSCAD and I want to know if
>     it's a
>     logical situation or is a limitation or if it's a bug behaviour.
>
>     1st : I can't use linear_extrude() with modules that use 3D
>     instructions, only with those that use exclusively 2D instructions.
>
>     2nd: I can't export to STL a drawing that uses exclusively 2D
>     instructions.
>
>     if I want to generate an STL file with only 2D instructions, I
>     need to
>     apply at least a 0.1 of linear_extrusion to the drawing.
>
>     3rd: As a consequence of the first, I can't use linear_extrude() to
>     extrude an imported STL, because its content is always in 3D.
>
>     Did anyone know a tip or trick to save 2D drawings into an STL and to
>     extrude an STL file imported?
>
>     Thank you all in advance!
>
>
>
>
>
>
>     _______________________________________________
>     OpenSCAD mailing list
>     Discuss at lists.openscad.org <mailto:Discuss at lists.openscad.org>
>     http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>
>
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190719/0f028e39/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lemifjnciophcdpd.png
Type: image/png
Size: 26698 bytes
Desc: not available
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20190719/0f028e39/attachment.png>


More information about the Discuss mailing list