Skip to content

walls.scad

Revar Desmera edited this page Apr 24, 2024 · 1 revision

LibFile: walls.scad

Walls and structural elements that 3D print without support.

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

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

File Contents

  1. Section: Walls

Section: Walls

Module: sparse_wall()

Synopsis: Makes an open cross-braced rectangular wall. [Geom]

Topics: FDM Optimized, Walls

See Also: corrugated_wall(), thinning_wall(), thinning_triangle(), narrowing_strut()

See Also: corrugated_wall(), thinning_wall()

Usage:

  • sparse_wall(h, l, thick, [maxang=], [strut=], [max_bridge=]) [ATTACHMENTS];

Description:

Makes an open rectangular strut with X-shaped cross-bracing, designed to reduce the need for support material in 3D printing.

Arguments:

By Position What it does
h height of strut wall.
l length of strut wall.
thick thickness of strut wall.
By Name What it does
maxang maximum overhang angle of cross-braces.
strut the width of the cross-braces.
max_bridge maximum bridging distance between cross-braces.
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

Example 1: Typical Shape

sparse\_wall() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall(h=40, l=100, thick=3);



Example 2: Thinner Strut

sparse\_wall() Example 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall(h=40, l=100, thick=3, strut=2);



Example 3: Larger maxang

sparse\_wall() Example 3
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall(h=40, l=100, thick=3, strut=2, maxang=45);



Example 4: Longer max_bridge

sparse\_wall() Example 4
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall(h=40, l=100, thick=3, strut=2, maxang=45, max_bridge=30);

Module: sparse_wall2d()

Synopsis: Makes an open cross-braced rectangular wall. [Geom]

Topics: FDM Optimized, Walls

See Also: sparse_wall(), corrugated_wall(), thinning_wall(), thinning_triangle(), narrowing_strut()

See Also: corrugated_wall(), thinning_wall()

Usage:

  • sparse_wall2d(size, [maxang=], [strut=], [max_bridge=]) [ATTACHMENTS];

Description:

Makes a 2D open rectangular square with X-shaped cross-bracing, designed to be extruded, to make a strut that reduces the need for support material in 3D printing.

Arguments:

By Position What it does
size The [X,Y] size of the outer rectangle.
By Name What it does
maxang maximum overhang angle of cross-braces.
strut the width of the cross-braces.
max_bridge maximum bridging distance between cross-braces.
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

Example 1: Typical Shape

sparse\_wall2d() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall2d(size=[40,100]);



Example 2: Thinner Strut

sparse\_wall2d() Example 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall2d(size=[40,100], strut=2);



Example 3: Larger maxang

sparse\_wall2d() Example 3
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall2d(size=[40,100], strut=2, maxang=45);



Example 4: Longer max_bridge

sparse\_wall2d() Example 4
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
sparse_wall2d(size=[40,100], strut=2, maxang=45, max_bridge=30);

Module: corrugated_wall()

Synopsis: Makes a corrugated rectangular wall. [Geom]

Topics: FDM Optimized, Walls

See Also: sparse_wall(), thinning_wall(), thinning_triangle(), narrowing_strut()

See Also: sparse_wall(), thinning_wall()

Usage:

  • corrugated_wall(h, l, thick, [strut=], [wall=]) [ATTACHMENTS];

Description:

Makes a corrugated wall which relieves contraction stress while still providing support strength. Designed with 3D printing in mind.

Arguments:

By Position What it does
h height of strut wall.
l length of strut wall.
thick thickness of strut wall.
By Name What it does
strut the width of the cross-braces.
wall thickness of corrugations.
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

Example 1: Typical Shape

corrugated\_wall() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
corrugated_wall(h=50, l=100);



Example 2: Wider Strut

corrugated\_wall() Example 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
corrugated_wall(h=50, l=100, strut=8);



Example 3: Thicker Wall

corrugated\_wall() Example 3
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
corrugated_wall(h=50, l=100, strut=8, wall=3);




Module: thinning_wall()

Synopsis: Makes a rectangular wall with a thin middle. [Geom]

Topics: FDM Optimized, Walls

See Also: sparse_wall(), corrugated_wall(), thinning_triangle(), narrowing_strut()

See Also: sparse_wall(), corrugated_wall(), thinning_triangle()

Usage:

  • thinning_wall(h, l, thick, [ang=], [braces=], [strut=], [wall=]) [ATTACHMENTS];

Description:

Makes a rectangular wall which thins to a smaller width in the center, with angled supports to prevent critical overhangs.

Arguments:

By Position What it does
h Height of wall.
l Length of wall. If given as a vector of two numbers, specifies bottom and top lengths, respectively.
thick Thickness of wall.
By Name What it does
ang Maximum overhang angle of diagonal brace.
braces If true, adds diagonal crossbraces for strength.
strut The width of the borders and diagonal braces. Default: thick/2
wall The thickness of the thinned portion of the wall. Default: thick/2
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

Example 1: Typical Shape

thinning\_wall() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_wall(h=50, l=80, thick=4);



Example 2: Trapezoidal

thinning\_wall() Example 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_wall(h=50, l=[80,50], thick=4);



Example 3: Trapezoidal with Braces

thinning\_wall() Example 3
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_wall(h=50, l=[80,50], thick=4, strut=4, wall=2, braces=true);

Module: thinning_triangle()

Synopsis: Makes a triangular wall with a thin middle. [Geom]

Topics: FDM Optimized, Walls

See Also: sparse_wall(), corrugated_wall(), thinning_wall(), narrowing_strut()

See Also: thinning_wall()

Usage:

  • thinning_triangle(h, l, thick, [ang=], [strut=], [wall=], [diagonly=], [center=]) [ATTACHMENTS];

Description:

Makes a triangular wall with thick edges, which thins to a smaller width in the center, with angled supports to prevent critical overhangs.

Arguments:

By Position What it does
h height of wall.
l length of wall.
thick thickness of wall.
By Name What it does
ang maximum overhang angle of diagonal brace.
strut the width of the diagonal brace.
wall the thickness of the thinned portion of the wall.
diagonly boolean, which denotes only the diagonal side (hypotenuse) should be thick.
center If true, centers shape. If false, overrides anchor with UP+BACK.
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

Example 1: Centered

thinning\_triangle() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_triangle(h=50, l=80, thick=4, ang=30, strut=5, wall=2, center=true);

Example 2: All Braces

thinning\_triangle() Example 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_triangle(h=50, l=80, thick=4, ang=30, strut=5, wall=2, center=false);

Example 3: Diagonal Brace Only

thinning\_triangle() Example 3
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
thinning_triangle(h=50, l=80, thick=4, ang=30, strut=5, wall=2, diagonly=true, center=false);

Module: narrowing_strut()

Synopsis: Makes a strut like an extruded baseball home plate. [Geom]

Topics: FDM Optimized

See Also: sparse_wall(), corrugated_wall(), thinning_wall(), thinning_triangle()

Usage:

  • narrowing_strut(w, l, wall, [ang=]) [ATTACHMENTS];

Description:

Makes a rectangular strut with the top side narrowing in a triangle. The shape created may be likened to an extruded home plate from baseball. This is useful for constructing parts that minimize the need to support overhangs.

Arguments:

By Position What it does
w Width (thickness) of the strut.
l Length of the strut.
wall height of rectangular portion of the strut.
By Name What it does
ang angle that the trianglar side will converge at.
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

Example 1:

narrowing\_strut() Example 1
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
narrowing_strut(w=10, l=100, wall=5, ang=30);




Clone this wiki locally