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

nop head nop.head at gmail.com
Fri Jul 19 03:47:04 EDT 2019


Glad to help!

I can see why you needed it now. Where did you get the profile STL from?

On Fri, 19 Jul 2019 at 08:43, Juan C.Cilleruelo <juanc.cilleruelo at gmail.com>
wrote:

> 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> 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
>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
>>
>
> _______________________________________________
> OpenSCAD mailing listDiscuss at lists.openscad.orghttp://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/10577e20/attachment.html>


More information about the Discuss mailing list