1 sliders.scad
Revar Desmera edited this page 2024-12-14 02:23:46 -08:00
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.

LibFile: sliders.scad

Simple V-groove based sliders and rails.

To use, add the following lines to the beginning of your file:

include <BOSL2/std.scad>
include <BOSL2/sliders.scad>

File Contents

  1. Section: Modules
    • slider() Creates a V-groove slider. [Geom]
    • rail() Creates a V-groove rail. [Geom]

Section: Modules

Module: slider()

Synopsis: Creates a V-groove slider. [Geom]

Topics: Parts, Sliders

See Also: rail()

Usage:

  • slider(l, w, h, [base=], [wall=], [ang=], [$slop=]) [ATTACHMENTS];

Description:

Creates a slider to match a V-groove rail.

Arguments:

By Position What it does
l Length (long axis) of slider.
w Width of slider.
h Height of slider.
By Name What it does
base Height of slider base.
wall Width of wall behind each side of the slider.
ang Overhang angle for slider, to facilitate supportless printig.
anchor Translate so anchor point is at origin (0,0,0). See anchor. Default: CENTER
spin Rotate this many degrees around the Z axis after anchor. See spin. Default: 0
orient Vector to rotate top towards, after spin. See orient. Default: UP
$slop The printer-specific slop value to make parts fit just right.

Example 1:

slider() Example 1
include <BOSL2/std.scad>
include <BOSL2/sliders.scad>
slider(l=30, base=10, wall=4, $slop=0.2, spin=90);




Module: rail()

Synopsis: Creates a V-groove rail. [Geom]

Topics: Parts, Sliders

See Also: slider()

Usage:

  • rail(l, w, h, [chamfer=], [ang=]) [ATTACHMENTS];

Description:

Creates a V-groove rail.

Arguments:

By Position What it does
l Length (long axis) of slider.
w Width of slider.
h Height of slider.
chamfer Size of chamfer at end of rail.
ang Overhang angle for slider, to facilitate supportless printing.
By Name What it does
anchor Translate so anchor point is at origin (0,0,0). See anchor. Default: BOTTOM
spin Rotate this many degrees around the Z axis after anchor. See spin. Default: 0
orient Vector to rotate top towards, after spin. See orient. Default: UP

Example 1:

rail() Example 1
include <BOSL2/std.scad>
include <BOSL2/sliders.scad>
rail(l=100, w=10, h=10);