Created
May 27, 2024 18:43
-
-
Save devbyray/7f2b2a6060943d0f13e03c8fe2dd6be8 to your computer and use it in GitHub Desktop.
OpenSCAD - Name Keychain
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
//Parameters | |
name = "RayRay"; | |
name_size = 10; | |
name_height = 1; | |
font = "Lobster Two"; | |
outline_height = 1; | |
outline_thickness = 1.6; | |
// This takes care of smoother edges | |
$fn = 50; | |
union() { | |
//Text | |
translate([0,-(name_size/2),1]) { | |
linear_extrude (height = name_height) | |
text(name, size = name_size, font = font); | |
} | |
//Outline | |
translate([0,-(name_size/2),0]){ | |
linear_extrude (height = outline_height) | |
offset(delta = outline_thickness) { | |
text(name, size = name_size, font = font, valign = "baseline"); | |
} | |
} | |
//Ring | |
difference() { | |
cylinder(h = 1, r = 3); | |
translate([0, 0, -1]) | |
cylinder(h = 4, r = 2); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment