Nabble has removed Mailing-list integration.
Posts created here DO NOT GET SENT TO THE MAILING LIST.
Mailing-list emails DO NOT GET POSTED TO THE FORUM.
So basically the Forum is now out of date, we are looking into migrating the history.

For now you should send emails, people will see them, discuss@lists.openscad.org.

Question on a transverse linear_extrusion from 2d *.dxf file

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

Question on a transverse linear_extrusion from 2d *.dxf file

SNT
Hello,

after a lot of trials I'm really struggling on the following problem:

I would like to extrude a 2D dxf up to a certain height, but not directly in a perfect Z-direction but in a certain angle to get a sloped 3D shape. The targeted 3D object is a height of 10mm with a ceratin angular. Hull command is not working because the dxfs have a defined hole shape inside. If anybody has an idea how to solve this issue, please give ma a hint.

A trial with 'rotate' before extruding (after extruding I planned to rotate backwards) is interpreted in no real rotation but in extruding the plane shadow (light from above) into Z direction.

  linear_extrude(20,scale=[1,1])
                scale([1,1])
                rotate([45,0,45])
                translate([0,0,0])
                circle(50, $fa=1);

best regards Sven
I'm using OpenScad Version 2019.05
Reply | Threaded
Open this post in threaded view
|

Re: Question on a transverse linear_extrusion from 2d *.dxf file

Caddiy
Something like this?

a=15;
hull()
{
cylinder(r=50, h=0.001);
translate([0,0,20])
rotate([a,0,0])
scale([1,1/cos(a)])
cylinder(r=50, h=0.001);
}

Hull works on circles on the x and y axes, but not on the z axis for some reason.
SNT
Reply | Threaded
Open this post in threaded view
|

Re: Question on a transverse linear_extrusion from 2d *.dxf file

SNT
In reply to this post by SNT
No - something like this , but it should be without hull(). If I use hull() I have to take it 350 times for my application for linear_extrude, and hull() is a very time intensive function. Additionally hull() fills everything in the inner, which is not useful.

a=0;
hull()
{
cylinder(r=50, h=0.001);
translate([15,0,20])
rotate([a,0,0])
scale([1,1/cos(a)])
cylinder(r=50, h=0.001);
}
I'm using OpenScad Version 2019.05
Reply | Threaded
Open this post in threaded view
|

Re: Question on a transverse linear_extrusion from 2d *.dxf file

TLC123
In reply to this post by SNT
hope this helps you out
```
    skewx=1;
    skewy=1;
    M=[
    [1, 0, skewx, 0],
    [0, 1, skewy, 0],
    [ 0, 0, 1, 0],
    [ 0, 0, 0,  1]
                  ];
    multmatrix(M)
    linear_extrude(10)
    yourshape();

    module yourshape(){
        union(){
        circle(10);
        square(15);
        }
    }
```