Created
September 4, 2026 15:47
-
-
Save theanam/3e5903d54ae7353fe9e06065f5b6d17c to your computer and use it in GitHub Desktop.
C style shape for openscad with rounded ends. Designed for my own use.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module cshape(d,h,wall,angle = 180, reset = false){ //d = internal_diameter | |
| rotate(reset == true?-(360-angle):0) | |
| union(){ | |
| rotate_extrude(angle = angle, convexity = 10) translate([d,0])square([wall, h]); | |
| translate([d + wall/2,0])cylinder(d = wall, h = h); | |
| rotate(angle) translate([d + wall/2,0])cylinder(d = wall, h = h); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment