Examples

Source: examples/square_link_example.scad
// One square link: four tilted loops around a hub, cut flat top and bottom.
use <../src/square_link.scad>;

/* [Link] */
// Radius of the round wire the loops are made of (mm)
example_link_circle_rad = 2.0; // [0.5:0.1:4]
// Radius of each loop (mm)
example_link_loop_rad = 6; // [2:0.5:15]
// How far each loop tilts out of the flat (degrees)
example_loop_skew = 45; // [15:75]
// How much to cut off the top and bottom so the link sits flat (mm); less than twice the wire radius
example_cut_offset = 1.2; // [0:0.1:4]

square_link(link_loop_rad = example_link_loop_rad, link_circle_rad = example_link_circle_rad,
            loop_skew = example_loop_skew, cut_offset = example_cut_offset);

examples/square_link_example.scad on GitHub

A sheet of square links that prints flat in one piece, each link free to move.

The links sit as close together as the clearance allows; the render stops if none can.

Source: examples/square_linkmail_example.scad
// A sheet of square links that prints flat in one piece, each link free to move.
// The links sit as close together as the clearance allows; the render stops if none can.
use <../src/linkmail.scad>;

/* [Sheet] */
// Links along x
n = 3; // [1:1:20]
// Links along y
m = 3; // [1:1:20]
// Smallest gap between neighbouring links (mm)
clearance = 0.4; // [0.2:0.05:0.8]

/* [Link] */
// Radius of the round wire the loops are made of (mm)
example_link_circle_rad = 1; // [0.5:0.1:4]
// Radius of each loop (mm)
example_link_loop_rad = 3.5; // [2:0.5:15]
// How far each loop tilts out of the flat (degrees)
example_loop_skew = 45; // [15:75]
// How much to cut off the top and bottom so each link sits flat (mm); less than twice the wire radius
example_cut_offset = 1; // [0:0.1:4]

square_mail(link_loop_rad = example_link_loop_rad, link_circle_rad = example_link_circle_rad,
            loop_skew = example_loop_skew, cut_offset = example_cut_offset, n = n, m = m, clearance = clearance);

examples/square_linkmail_example.scad on GitHub

Source: examples/triangle_link_example.scad
// A triangle link, and a ring of six of them.
use <../src/triangle_link.scad>;

/* [Link] */
// Radius of the round wire the loops are made of (mm)
example_link_circle_rad = 2.4; // [0.5:0.1:4]
// Radius of each loop (mm)
example_link_loop_rad = 7.2; // [2:0.5:20]
// How far each loop tilts out of the flat (degrees)
example_loop_skew = 45; // [15:75]
// How much to cut off the top and bottom so the link sits flat (mm); less than twice the wire radius
example_cut_offset = 1.6; // [0:0.1:4]

/* [Ring] */
// Which to draw
render_select = "both"; // [both, tri_link, hex_link]
// Spacing factor between the links in the ring
example_tri_hex_link_spacing = 0.5; // [0:0.01:1]

if (render_select == "both" || render_select == "tri_link")
    triangle_link(link_loop_rad = example_link_loop_rad, link_circle_rad = example_link_circle_rad,
                  loop_skew = example_loop_skew, cut_offset = example_cut_offset);

tri_hex_shift = (render_select == "both") ? example_link_loop_rad * 10 : 0;

if (render_select == "both" || render_select == "hex_link")
    translate([ tri_hex_shift, 0, 0 ])
        tri_hex_link(link_circle_rad = example_link_circle_rad, link_loop_rad = example_link_loop_rad,
                     link_spacing = example_tri_hex_link_spacing)
            triangle_link(link_loop_rad = example_link_loop_rad, link_circle_rad = example_link_circle_rad,
                          loop_skew = example_loop_skew, cut_offset = example_cut_offset);

examples/triangle_link_example.scad on GitHub


This site uses Just the Docs, a documentation theme for Jekyll.