Skip to content

shapes3d.scad

pinkfish edited this page Apr 19, 2026 · 3 revisions

LibFile: shapes3d.scad

This file has all the modules needed to make various 3d shapes.

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

include <boardgame_toolkit.scad>

File Contents

  1. Section: Shapes3d

Section: Shapes3d

3d shapes to use in boxes and stuff.

Module: Dodecahedron()

Topics: Dice

Description:

Creates a 12 sided dice/shape for use in things.

Arguments:

By Position What it does
size the width of the do-decahedron

Example 1:

Dodecahedron() Example 1
include <boardgame_toolkit.scad>
Dodecahedron(20);




Module: Tetrahedron()

Topics: Dice

Description:

Makes a nice d4 shape for use in games.

Arguments:

By Position What it does
size the diameter of the dice, it fits inside this sphere.

Example 1:

Tetrahedron() Example 1
include <boardgame_toolkit.scad>
Tetrahedron(10);




Module: Octahedron()

Topics: Dice

Description:

Makes a nice d8 shape for use in games.

Arguments:

By Position What it does
size the diameter of the dice, it fits inside this sphere.

Example 1:

Octahedron() Example 1
include <boardgame_toolkit.scad>
Octahedron(10);




Module: Icosahedron()

Topics: Dice

Description:

Makes a nice d20 shape for use in games.

Arguments:

By Position What it does
size the diameter of the dice, it fits inside this sphere.

Example 1:

Icosahedron() Example 1
include <boardgame_toolkit.scad>
Icosahedron(10);




Module: Trapezohedron()

Topics: Dice

Description:

Makes a nice d10 shape for use in games.

Arguments:

By Position What it does
size the diameter of the dice, it fits inside this sphere.
length_mod modification to the length of the trapezohedron (default 0).

Example 1:

Trapezohedron() Example 1
include <boardgame_toolkit.scad>
Trapezohedron(10);



Example 2:

Trapezohedron() Example 2
include <boardgame_toolkit.scad>
Trapezohedron(20)
{
   down(.3) linear_extrude(height = 1) text(str($faceindex), halign = "center", valign = "center", size = 5);
}

Clone this wiki locally