Created
October 18, 2021 15:36
-
-
Save NuclearLighthouseStudios/69526725f02e657d8dd1bd900a1c32be to your computer and use it in GitHub Desktop.
3D Printed Printing Plate Generator Script
This file contains 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
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