-
Notifications
You must be signed in to change notification settings - Fork 2
base_bgtk.scad
This file has all the modules needed to generate varioius inserts for board games. It makes the generation of the inserts simpler by creating a number of useful base modules for making boxes and lids of various types specific to board game inserts. Specifically it makes tabbed lids and sliding lids easily.
To use, add the following lines to the beginning of your file:
include <boardgame_toolkit.scad>
m_piece_wiggle_roomdefault_lid_thicknessdefault_wall_thicknessdefault_floor_thicknessdefault_slicing_layer_heightdefault_voronoi_seeddefault_material_colourdefault_label_colourdefault_label_background_colourdefault_positive_colourDefaultValue()SHAPE_TYPE_DENSE_HEXSHAPE_TYPE_DENSE_TRIANGLESHAPE_TYPE_CIRCLESHAPE_TYPE_HEXSHAPE_TYPE_OCTOGONSHAPE_TYPE_TRIANGLESHAPE_TYPE_NONESHAPE_TYPE_SQUARESHAPE_TYPE_SUPERSHAPESHAPE_TYPE_HILBERTSHAPE_TYPE_CLOUDSHAPE_TYPE_PENTAGON_R1SHAPE_TYPE_PENTAGON_R2SHAPE_TYPE_PENTAGON_R3SHAPE_TYPE_PENTAGON_R4SHAPE_TYPE_PENTAGON_R5SHAPE_TYPE_PENTAGON_R6SHAPE_TYPE_PENTAGON_R7SHAPE_TYPE_PENTAGON_R8SHAPE_TYPE_PENTAGON_R9SHAPE_TYPE_PENTAGON_R10SHAPE_TYPE_PENTAGON_R11SHAPE_TYPE_PENTAGON_R12SHAPE_TYPE_PENTAGON_R13SHAPE_TYPE_PENTAGON_R14SHAPE_TYPE_PENTAGON_R15SHAPE_TYPE_ESCHER_LIZARDSHAPE_TYPE_VORONOISHAPE_TYPE_LEAFSHAPE_TYPE_LEAF_VEINSSHAPE_TYPE_DROPSHAPE_TYPE_DELTOID_TRIHEXAGONALSHAPE_TYPE_DELTOID_TRIHEXAGONAL_KITESHAPE_TYPE_DELTOID_TRIHEXAGONAL_KITESHAPE_TYPE_RHOMBI_TRI_HEXAGONALSHAPE_TYPE_PENROSE_TILING_5SHAPE_TYPE_PENROSE_TILING_7CATCH_NONECATCH_SHORTCATCH_LONGCATCH_ALLCATCH_BUMPS_SHORTCATCH_BUMPS_LONGLABEL_TYPE_FRAMEDLABEL_TYPE_FRAMED_SOLIDLABEL_TYPE_FRAMED_SHORTLABEL_TYPE_FRAMED_SHORT_SOLIDLABEL_TYPE_FRAMELESS_ANGLELABEL_TYPE_FRAMELESSLABEL_TYPE_FRAMELESSdefault_label_fontdefault_label_solid_backgrounddefault_label_typeDifferenceWithOffset()
Description:
How many mm to use as gaps for when things join.
Description:
The default lid thickness for all boxes.
Description:
The default wall thickness for all boxes.
Description:
The default lid thickness for all boxes.
Description:
The default colour to use for material when making boxes.
Description:
The default colour to use for the label when making boxes.
Description:
The default colour to use for the label background when making boxes.
Description:
The default colour to use for postivie pieces.
Description:
Figures out the value, uses the input if it is not undefined, default if it is undefined.
Arguments:
| By Position | What it does |
|---|---|
input |
input value to check, only used if not undefined |
default |
default value to use, only used if the input is undefined. |
Description:
Creates a shape with a dense hexes, so they overlap.
Description:
Creates a shape with a dense triangles, so they overlap.
Description:
Creates a shape with a circles.
Description:
Creates a shape with a hexes.
Description:
Creates a shape with a octogons.
Description:
Creates a shape with a triangle.
Description:
Empty shape, no space filling.
Description:
Layout a nice set of squares.
Description:
Makes a nice Superformula shape.
Description:
Layout a nice hilbert curve.
Description:
Makes a nice cloud shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating pentagon shape.
Description:
Makes a nice repeating escher lizard shape.
Description:
Make a lid with a voronoi layout.
Description:
Make a lid with a voronoi layout.
Description:
Make a shape with leaf veins, use a wider shape for this it will take forever to render.
Description:
Make a shape that looks a bit like a drop and rendered as a tesselation.
Description:
Make a shape that is a deltoid trihexagon.
Description:
Make a shape that is a deltoid trihexagon with kiting.
Description:
Make a shape that is a half regular hexagon.
Description:
Make a shape that is a rhombitrihexagon.
Description:
Make a shape that is a penrose tiling.
Description:
Make a shape that is a penrose tiling.
Description:
No catch associated with the lid.
Description:
Catch on the shortest side, wedge style
Description:
Catch on the longest side, wedge style.
Description:
Catch on the all sides, wedge style.
Description:
Small bumbs on the side of the box to hold the lid in place, not a wedge.
Description:
Small bumbs on the side of the box to hold the lid in place, not a wedge.
Description:
The label framed inside a box, with a striped background.
Description:
The label framed inside a box, with a solid background.
Description:
The label framed inside a box, with a stripedbackground on the short length.
Description:
The label framed inside a box, with a solid background on the short length.
Description:
The label on an angle across the lid.
Description:
The label across the lid on the long lenfth.
Description:
The label across the lid on the short length.
Description:
The default font to use for labels
Description:
The default to use if the label should have a solid background or not.
Description:
The detault type of label to use for all the lids.
Description:
Helper function that does an offset with the size inside the difference of the object makes it easier for constructing outlines.
Arguments:
| By Position | What it does |
|---|---|
offset |
how much of an offset, -ve is inside the shape, +ve is outside the shape. |
Table of Contents
Function Index
Topics Index
Cheat Sheet
Tutorials
Boxes:
- cap_box.scad
- cap_box_polygon.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:
Miscellaneous: