Last active
January 9, 2026 15:45
-
-
Save LeSpocky/7880703 to your computer and use it in GitHub Desktop.
rounded square in openscad
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 rounded_square( width, radius_corner ) { | |
| translate( [ radius_corner, radius_corner, 0 ] ) | |
| minkowski() { | |
| square( width - 2 * radius_corner ); | |
| circle( radius_corner ); | |
| } | |
| } | |
| module alternative_square( width, r_c ) { | |
| hull() { | |
| translate( [r_c, r_c, 0] ) circle( r_c ); | |
| translate( [r_c, width - r_c, 0 ] ) circle( r_c ); | |
| translate( [width - r_c, r_c, 0] ) circle( r_c ); | |
| translate( [width - r_c, width - r_c, 0] ) circle( r_c ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@arneboockmeyer nice job. Added ability to center in x, y and xy axis