-
Notifications
You must be signed in to change notification settings - Fork 4
lids_base.scad
This file has all the shared lid pieces for making lids.
To use, add the following lines to the beginning of your file:
include <boardgame_toolkit.scad>
Building blocks for making various kinds of lids and labels.
Topics: PatternFill
Usage:
- LidMeshDense(width = 70, length = 50, lid_thickness = 3, boundary = 10, radius = 5, shape_thickness = 2,
- shape_edges = 6);
Description:
Make a hex mesh for the lid. This makes a nice pattern for use on the lids.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the mesh section |
length |
the length of the mesh section |
lid_thickness |
how high the lid is |
boundary |
how wide of a boundary edge to put on the side of the lid |
radius |
the radius of the polygon to create |
shape_thickness |
how thick to generate the gaps between the hexes (default 2) |
shape_edges |
number of edges for the shape (default 6) |
offset |
how much to offset the shape, so you can do overlapping shapes (default 0) |
Example 1:
include <boardgame_toolkit.scad>
LidMeshDense(width = 100, length = 50, lid_thickness = 3, boundary = 10, radius = 10, shape_thickness = 2,
shape_edges = 6);
Example 2:
include <boardgame_toolkit.scad>
LidMeshDense(width = 100, length = 50, lid_thickness = 3, boundary = 10, radius = 10, shape_thickness = 2,
shape_edges = 3);
Topics: PatternFill
Usage:
- LidMeshHex(width = 70, length = 50, lid_thickness = 3, boundary = 10, radius = 5, shape_thickness = 2);
Description:
Make a hex mesh for the lid. This makes a nice pattern for use on the lids.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the mesh section |
length |
the length of the mesh section |
lid_thickness |
how high the lid is |
boundary |
how wide of a boundary edge to put on the side of the lid |
radius |
the radius of the polygon to create |
shape_thickness |
how thick to generate the gaps between the hexes |
Example 1:
include <boardgame_toolkit.scad>
LidMeshHex(width = 100, length = 50, lid_thickness = 3, boundary = 10, radius = 10, shape_thickness = 2);
Topics: PatternFill
Usage:
- LidMeshRepeating(50, 20, 3, 5, 10);
Description:
Make a mesh for the lid with a repeating shape. It uses the children of this to repeat the shape.
Arguments:
| By Position | What it does |
|---|---|
width |
width of the mesh section |
length |
the length of the mesh section |
lid_thickness |
how high the lid is |
boundary |
how wide of a boundary edge to put on the side of the lid |
shape_width |
the width to use between each shape. |
aspect_ratio |
the aspect ratio (multiple by dy) (default 1.0) |
shape_edges |
the number of edges on the shape (default 4) |
Example 1:
include <boardgame_toolkit.scad>
LidMeshRepeating(width = 50, length = 50, lid_thickness = 3, boundary = 5, shape_width = 10)
difference() {
circle(r = 7);
circle(r = 6);
}
Description:
Creates a lid mesh with a set of known shapes. The width is the width of the shape for layout purposes and the shape_width is the width for generation purposes. The layout width and shape width default to being the same for dense layouts, and overlapping for non-dense layouts.
Example 1:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_DENSE_HEX, shape_thickness = 2, shape_width = 10);
Example 2:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 70, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 14);
Example 3:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 70, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_DENSE_HEX, shape_thickness = 1, shape_width = 11);
Example 4:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_DENSE_TRIANGLE, shape_thickness = 2, shape_width = 10);
Example 5:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_CIRCLE, shape_thickness = 2, shape_width = 14);
Example 6:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10, shape_type =
SHAPE_TYPE_TRIANGLE, shape_thickness = 2, shape_width = 10);
Example 7:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_HEX, shape_thickness = 1, shape_width = 14);
Example 8:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 16);
Example 9:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 13, aspect_ratio=1.25);
Example 10:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_OCTOGON, shape_thickness = 1, shape_width = 10.5, aspect_ratio=1);
Example 11:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_SQUARE, shape_thickness = 2, shape_width = 11);
Example 12:
include <boardgame_toolkit.scad>
LidMeshBasic(width = 100, length = 50, lid_thickness = 2, boundary = 10, layout_width = 10,
SHAPE_TYPE_ROUNDED_SQUARE, shape_thickness = 2, shape_width = 11);
Topics: SlidingBox, SlidingLid
Usage:
- SlidingLidFingernail(radius = 10, lid_thickness = 3);
Description:
Creates a fingernail section for moving a sliding lid.
Arguments:
| By Position | What it does |
|---|---|
radius |
radius of the circle the gap is in |
lid_thickness |
height of the lid |
finger_gap |
the space to make for a finger gap (default = 1.5) |
sphere |
the size of the sphere for the inset (default 12) |
finger_length |
the length of the finger section (default = 15) |
Example 1:
include <boardgame_toolkit.scad>
SlidingLidFingernail(3);
Usage:
- MakeLidTab(5, 10, 2);
Description:
Makes a lid tab, a single lid lab, to use for boxes.
Arguments:
| By Position | What it does |
|---|---|
length |
the length of the tab |
height |
the height of the tab |
lid_thickness |
the height of the lid (defaults to 2) |
prism_width |
the width of the prism (defaults to 0.75) |
wall_thickness |
the thickness of the walls (default 2) |
Example 1:
include <boardgame_toolkit.scad>
MakeLidTab(length = 5, height = 10, lid_thickness = 2, prism_width = 0.75, wall_thickness = 2);
Usage:
- MakeTabs(50, 100, wall_thickness = 2, lid_thickness = 2);
Description:
Create the tabs for the box, this can be used on the lids and the box to create cutouts,
this just does the layout. Use the MakeLidTab() to make the tabs, it will place the children
at each of the specified offsets to make the tabs.
Arguments:
| By Position | What it does |
|---|---|
box_width |
width of the box (outside size) |
box_length |
length of the box (outside size) |
lid_thickness |
the height of the lid (default = 2) |
tab_length |
how long the tab is (default = 10) |
make_tab_width |
make tabs on the width side (default false) |
make_tab_length |
make tabs on the length side (default true) |
Example 1:
include <boardgame_toolkit.scad>
MakeTabs(50, 100)
MakeLidTab(length = 10, height = 6);
Table of Contents
Function Index
Topics Index
Cheat Sheet
Tutorials
Boxes:
- cap_box.scad
- cap_box_polygon.scad
- filament_hinge_box.scad
- hinge_box.scad
- inset_box.scad
- magnetic_box.scad
- no_lid.scad
- sliding_box.scad
- sliding_catch_box.scad
- slipover_box.scad
- slipover_path_box.scad
Basics:
Dividers:
Shapes:
Slicing:
CardLibrary:
Miscellaneous: