discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Making a pipe between dissimilar objects

T
Turbo-FLOW
Sun, Nov 6, 2022 8:21 PM

Hi,

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.

I suspect there is a better way than what I am trying to do but have no idea how to get started.

2 links to images showing what I have concocted so far:
[url=https://ibb.co/LpT8zk2][img]https://i.ibb.co/QmWfFb1/Connector-1.png[/img][/url]

[url=https://ibb.co/ynXPMNj][img]https://i.ibb.co/qMdj4DQ/Connector-2.png[/img][/url]

The below is to illustrate the convoluted code I am using to make plates for the sides and then move them around and then difference any overhang at the end.

difference(){// clean up the mess around the angled fan shroud
union(){// angled fan shroud parts

translate([0,0,-2.25])
rotate([0,20,0])// narrow angled side cover 1
linear_extrude(height = 2.5, center = true, convexity = 0, twist = 0)
 polygon(points=[[-5,0],[-5,46],[36,63],[36,-17.0]]);

translate([142.5,46,-0])
rotate([0,23.5,180])// narrow angled side cover 2
linear_extrude(height = 2.5, center = true, convexity = 0, twist = 0)
 polygon(points=[[2.5,2.5],[2.5,43.5],[34.7,63],[34.7,-17.0]]);
etc etc etc

Is there a more elegant way to create a connection, maybe a smooth and organic looking thing?

I would like to 3D print the part in case that matters.

Thanks for any help with this!

Mik

Sent with Proton Mail secure email.

Hi, 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. I suspect there is a better way than what I am trying to do but have no idea how to get started. 2 links to images showing what I have concocted so far: [url=https://ibb.co/LpT8zk2][img]https://i.ibb.co/QmWfFb1/Connector-1.png[/img][/url] [url=https://ibb.co/ynXPMNj][img]https://i.ibb.co/qMdj4DQ/Connector-2.png[/img][/url] The below is to illustrate the convoluted code I am using to make plates for the sides and then move them around and then difference any overhang at the end. difference(){// clean up the mess around the angled fan shroud union(){// angled fan shroud parts translate([0,0,-2.25]) rotate([0,20,0])// narrow angled side cover 1 linear_extrude(height = 2.5, center = true, convexity = 0, twist = 0)  polygon(points=[[-5,0],[-5,46],[36,63],[36,-17.0]]); translate([142.5,46,-0]) rotate([0,23.5,180])// narrow angled side cover 2 linear_extrude(height = 2.5, center = true, convexity = 0, twist = 0)  polygon(points=[[2.5,2.5],[2.5,43.5],[34.7,63],[34.7,-17.0]]); etc etc etc Is there a more elegant way to create a connection, maybe a smooth and organic looking thing? I would like to 3D print the part in case that matters. Thanks for any help with this! Mik Sent with Proton Mail secure email.