Skip to content

labels.scad

pinkfish edited this page Oct 23, 2024 · 13 revisions

LibFile: labels.scad

This file has all the shared label pieces for the system.

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

include <boardgame_toolkit.scad>

File Contents

  1. Section: Labels

Section: Labels

Building blocks for making labels.

Module: MakeStripedGrid()

Topics: Label

Usage:

  • MakeStripedGrid(20,50);

Description:

Creates a background striped grid, this is used in the label space generation.

Arguments:

By Position What it does
width width of the grid space
length length of the grid space
bar_width width of the bars (default 1)

Example 1:

MakeStripedGrid() Example 1
include <boardgame_toolkit.scad>
MakeStripedGrid(20, 50);




Module: Make3dStripedGrid()

Topics: Label

Usage:

  • Make3dStripedGrid(20,50);

Description:

Creates a background striped grid, this is used in the label space generation.

Arguments:

By Position What it does
width width of the grid space
length length of the grid space
bar_width_top width of the bars (default 1)
bar_width_bottom height of the bar (default bar_width_top)

Example 1:

Make3dStripedGrid() Example 1
include <boardgame_toolkit.scad>
Make3dStripedGrid(width = 20, length = 50, height = 1);



Example 2:

Make3dStripedGrid() Example 2
include <boardgame_toolkit.scad>
Make3dStripedGrid(width = 20, length = 50, height = 0.2, bar_width_bottom = 1);

Module: MakeStripedLidLabel()

Topics: Label

Usage:

  • MakeStripedLidLabel(20, 80, 2, label="Australia", border = 2, offset = 4);

Description:

Makes a label inside a striped grid to use in the lid. It makes a label with a border and a striped grid in the background to keep the label in plave.

Arguments:

By Position What it does
width width of the label section
length length of the label section
lid_thickness height of the lid/label
label the text of the label
border how wide the border is around the label (default 2)
offset how far in from the sides the text should be (default 4)
font the font to use for the text (default "Stencil Std:style=Bold")
radius the radius of the corners on the label section (default 5)
full_height full height of the lid (default false)

Example 1:

MakeStripedLidLabel() Example 1
include <boardgame_toolkit.scad>
MakeStripedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia");

Example 2:

MakeStripedLidLabel() Example 2
include <boardgame_toolkit.scad>
MakeStripedLidLabel(width = 20, length = 80, lid_thickness = 2, label = "Australia", full_height = true);

Module: FingerHoleBase()

Usage: FingerHoldBase(10, 20);

Description:

Creates a hole in the floor of the box with a rounding over at the top to allow for picking up of cards and other things. Center on the side of the wall and the radius of the main section is the offset to the middle.

Arguments:

By Position What it does
radius radius of the hole
height height of the wall
wall_thickness this is used as an offset to move in from the wall by this amount to cut through it (default 2)
rounding_radius rounding radius at the top of the hole (default 3)
orient orintation of the hole, from BSOL2 (default UP)
spin spin of the hole, from BSOL2 (default 0)
anchor location to anchor everything (from BSOL2)

Example 1:

FingerHoleBase() Example 1
include <boardgame_toolkit.scad>
FingerHoleBase(10, 20);



Example 2:

FingerHoleBase() Example 2
include <boardgame_toolkit.scad>
FingerHoleBase(10, 20, rounding_radius = 7);




Clone this wiki locally