Skip to content

Instantly share code, notes, and snippets.

@adeeshaek
Created June 20, 2024 13:25
Show Gist options
  • Save adeeshaek/2073fac2a3cbd3ee34805223c5f19b4b to your computer and use it in GitHub Desktop.
Save adeeshaek/2073fac2a3cbd3ee34805223c5f19b4b to your computer and use it in GitHub Desktop.
How to create a pottery stamp using openSCAD for 3d printing
use <chamfer_extrude.scad>
// declare the height and radius of the cylinder supporting the stamp
cylinder_height = 20;
cylinder_radius = 10;
// move the stamp so that it is in the centre of the cylinder
translate([-1.3, 0.2, cylinder_height])
// scale the stamp so that it fits on the cylinder
scale([0.2, 0.2, 0.4])
// extrude the stamp, turning the 2d image into a
// beveled cutting surface
chamfer_extrude(height=10, angle=15, $fn=16)
projection(cut=true){
rotate([0, 180, 0])
// import "stamp.png", which is a .png of the stamp
surface(file="stamp.png", center=true, invert=true);
}
// render the supporting cylinder
cylinder(cylinder_height, cylinder_radius, cylinder_radius);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment