discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: Making a pipe between dissimilar objects

MP
Marcus Poller
Sun, Nov 6, 2022 9:19 PM

I am making a mess of code trying to make a 'tunnel' or 'pipe' to connect a rectangular computer housing to a circular cooling fan.

my preferred way to transform a square into a circle is $(hull), like so

x=10;
y=20;
d=20;
lenght=15;
minimal_height_for_3d=0.01;
$fn=100;

hull(){
cube([x,y,minimal_height_for_3d], center=true);
translate([0,0,lenght]) cylinder(d=d,h=minimal_height_for_3d);
}

> I am making a mess of code trying to make a 'tunnel' or 'pipe' to connect a rectangular computer housing to a circular cooling fan. my preferred way to transform a square into a circle is $(hull), like so x=10; y=20; d=20; lenght=15; minimal_height_for_3d=0.01; $fn=100; hull(){ cube([x,y,minimal_height_for_3d], center=true); translate([0,0,lenght]) cylinder(d=d,h=minimal_height_for_3d); }
TF
turbo-flow@protonmail.com
Mon, Nov 7, 2022 9:54 AM

Thank you very much!

Thank you very much!