From aeed8e9f30e843c41e249d1e3f6da9073fdb3ee7 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 19 Sep 2022 16:49:43 -0700 Subject: [PATCH] Added model for lmXuu linear ball bearing cartridge. --- linear_bearings.scad | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/linear_bearings.scad b/linear_bearings.scad index 93dc2e9..e1cfc1d 100644 --- a/linear_bearings.scad +++ b/linear_bearings.scad @@ -148,4 +148,27 @@ module lmXuu_housing(size=8, tab=7, gap=5, wall=3, tabwall=5, screwsize=3, ancho } +// Module: lmXuu_bearing() +// Description: +// Creates a model of an lmXuu linear ball bearing cartridge. +// Arguments: +// size = Standard lmXuu inner size. +// anchor = Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `CENTER` +// spin = Rotate this many degrees around the Z axis after anchor. See [spin](attachments.scad#subsection-spin). Default: `0` +// orient = Vector to rotate top towards, after spin. See [orient](attachments.scad#subsection-orient). Default: `UP` +// Example: +// lmXuu_bearing(size=10); +module lmXuu_bearing(size=8, anchor=CTR, spin=0, orient=UP) { + d = get_lmXuu_bearing_diam(size); + l = get_lmXuu_bearing_length(size); + color("silver") { + tube(id=size, od=d, l=l-1); + tube(id=d-1, od=d, l=l); + tube(id=size, od=size+1, l=l); + tube(id=size+2, od=d-2, l=l); + } +} + + + // vim: expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap