Skip to content

Instantly share code, notes, and snippets.

@NuclearLighthouseStudios
Created October 18, 2021 15:36
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NuclearLighthouseStudios/69526725f02e657d8dd1bd900a1c32be to your computer and use it in GitHub Desktop.
Save NuclearLighthouseStudios/69526725f02e657d8dd1bd900a1c32be to your computer and use it in GitHub Desktop.
3D Printed Printing Plate Generator Script
file = "card-front.svg";
width = 54.68620;
height = 85.29320;
feature_height = 1.4;
plate_thickness = 0.6;
union()
{
minkowski()
{
linear_extrude(height = 0.1, center = false, convexity = 10)
scale([-1, 1, 1])
translate([-width, 0, 0])
import(file);
cylinder(feature_height - 0.1, 0.25, 0);
}
translate([-10,-10,-0.6])
cube([width+20,height+20,plate_thickness]);
minkowski()
{
union()
{
translate([width+5,height,0])
cube([5,0.8,0.2],true);
translate([width,height+5,0])
cube([0.8,5,0.2], true);
translate([-5,0,0])
cube([5,0.8,0.2],true);
translate([0,-5,0])
cube([0.8,5,0.2], true);
translate([width+5,0,0])
cube([5,0.8,0.2],true);
translate([width,-5,0])
cube([0.8,5,0.2], true);
translate([-5,height,0])
cube([5,0.8,0.2],true);
translate([0,height+5,0])
cube([0.8,5,0.2], true);
}
cylinder(feature_height - 0.1, 0.2, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment