Skip to content

Instantly share code, notes, and snippets.

@nfd9001
Created August 4, 2023 23:29
Show Gist options
  • Save nfd9001/b43111a92eb8464b58f2d2273b01cd84 to your computer and use it in GitHub Desktop.
Save nfd9001/b43111a92eb8464b58f2d2273b01cd84 to your computer and use it in GitHub Desktop.
Script to deboss text onto a flatbox rev5 case top
/*tested on flat bed, 0.2mm layer height. YMMV on textured.
be careful on bold/black fonts;
your printer may or may not like large overhangs even ~3 layers up.
bring the default flatbox top STL with you into the directory where this file is saved*/
xshift = 10;
yshift = -55;
rotation = 0; //degrees
deboss_string = "sample text";
font_name = "DejaVu Sans";
difference(){
import("Flatbox-rev5-Top.stl");
rotate(a=rotation,v=[0,0,1])
translate([xshift, yshift, 7.3])
linear_extrude(.7)
text(deboss_string, font=font_name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment