Files
3d-printer-models/ring-sizer/ring-sizer.scad
T
2026-07-21 22:06:07 -07:00

45 lines
1.2 KiB
OpenSCAD

include <BOSL2/std.scad>
/*
* Chamfered Ring Module with Embedded Number
*
* @param id Inner diameter in mm (Default: 15.7)
* @param h Height in mm (Default: 3.9)
* @param thickness Wall thickness in mm (Default: 2.4)
* @param chamfer_size Size of the 45-degree chamfer in mm (Default: 0.5)
* @param ring_num The number (or text) to engrave (Default: "5")
* @param font_size Height of the number in mm (Default: 2.5)
* @param embed_depth How deep the number cuts into the ring in mm (Default: 0.5)
*/
module chamfered_ring(
id = 15.7,
h = 3.9,
thickness = 2.4,
chamfer_size = 0.5,
ring_num = "5",
font_size = 2.5,
embed_depth = 0.55
) {
od = id + (thickness * 2);
difference() {
tube(id = id, od = od, h = h, chamfer = chamfer_size);
rotate([90, 0, 0])
translate([0, 0, (od/2) - embed_depth])
linear_extrude(embed_depth + 1)
text(
text = str(ring_num),
size = font_size,
font = "Liberation Mono:style=Bold",
valign = "center",
halign = "center"
);
}
}
$fn = 200;
//chamfered_ring(id = 15.3, ring_num = "4.5");
chamfered_ring(id = 15.7, ring_num = "5");