Files
3DModel_Dynamic-Washer/Dynamic Washer.scad
William Miceli 96746dd93c Added script
2026-03-02 21:59:32 -05:00

37 lines
1.5 KiB
OpenSCAD
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Customizable Washer
// A simple, parametric flat washer for 3D printing or CAD assemblies
module washer(
inner_diameter = 6, // Diameter of the center hole (mm)
outer_diameter = 12, // Outer diameter of the washer (mm)
thickness = 2, // Thickness/height of the washer (mm)
resolution = 64 // Circle resolution ($fn). Higher values produce smoother circles (64128 recommended)
) {
difference() {
// Outer cylinder
cylinder(
d = outer_diameter,
h = thickness,
center = true,
$fn = resolution
);
// Inner hole (slightly taller to guarantee complete subtraction)
cylinder(
h = thickness + 2,
d = inner_diameter,
center = true,
$fn = resolution
);
}
}
// ──────────────────────────────────────────────────────────────
// Example usage change these values to generate your washer
// ──────────────────────────────────────────────────────────────
washer(
inner_diameter = 4, // ← modify this value
outer_diameter = 10, // ← modify this value
thickness = 0.2, // ← modify this value
resolution = 256
);