Skip to content

no_lid.scad

pinkfish edited this page Jun 6, 2026 · 8 revisions

LibFile: no_lid.scad

The boxex which have no lids with them.

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

include <boardgame_toolkit.scad>

File Contents

Constant: STACKABLE_TYPE_NONE

Description:

No additional base added.


Constant: STACKABLE_TYPE_INSIDE

Description:

Base is added to the inside of the box.


Constant: STACKABLE_TYPE_OUTSIDE

Description:

Base is added to the outside of the box.


Function: QuicksortExtraFloors()

Description:

Sorts a list of extra floors by floor_height.

Arguments:

By Position What it does
list list of extra floors

Example 1:

include <boardgame_toolkit.scad>
QuicksortExtraFloors(list = [object(path=path, floor_height=5, top_height=0), object(path=path, floor_height=10, top_height=0)]);




Module: MakeBoxWithNoLid()

Description:

Makes a box with no lid, useful for spacers and other things in games.

Arguments:

By Position What it does
size [width, length, height] outside size of the box
wall_thickness thickness of the walls (default default_wall_thickness)
material_colour the material colour to use (default default_material_colour)
floor_thickness thickness of the floor (default default_floor_thickness)
make_finger_x makes finger dip on the x axis (default width > length)
make_finger_y makes finger dip on the y axis (default length > width)
finger_hole_size size of the finger dip (default 20)
hollow make the inside hollow (default false)
fingert_hole_wall_width the width of the hole in the wall (default default_wall_thickness)

Example 1:

MakeBoxWithNoLid() Example 1
include <boardgame_toolkit.scad>
MakeBoxWithNoLid(size = [100, 50, 20]);



Example 2:

MakeBoxWithNoLid() Example 2
include <boardgame_toolkit.scad>
MakeBoxWithNoLid(size = [100, 50, 20], hollow=true);




Module: MakePathBoxWithNoLid()

Description:

Makes a box with no lid using a polygon layout, useful for spacers and other things in games. Be aware that you might get errors generating and you will need to use $fn to reduce the number of points to make the corners work

Arguments:

By Position What it does
path the path to generate for (this should be one line segment)
height the height of the box
wall_thickness thickness of the walls (default default_wall_thickness)
material_colour the material colour to use (default default_material_colour)
floor_thickness thickness of the floor (default default_floor_thickness)
make_finger_x makes finger dip on the x axis
make_finger_y makes finger dip on the y axis
finger_hole_size size of the finger dip (default 20)
offset_sweep_options the options to use in the offset_sweep hollow box ({ offset = "round", check_valid: true, quality: 1, steps: 16}})
hollow if the box should be hollow (default false)
stackable_lid_thickness the thickness of the stackable part of the lid (default default_stackable_thickness)
stackable_fit_offset the offset to use for stackable fit (default 0.1)
hollow_radius the radius options for a hollow box (default object(top=default_wall_thickness/4, bottom=default_wall_thickness/4, radius=default_wall_thickness/2))
stackable if the box should be stackable (default false)
extra_floors optional set of extra paths and heights to carve out as [object(path=[], floor_height=N, top_height=N) (default [])]

Example 1:

MakePathBoxWithNoLid() Example 1
include <boardgame_toolkit.scad>
MakePathBoxWithNoLid(path=[[0,0], [50,0], [50,50], [0,50]], height=20);

Example 2:

MakePathBoxWithNoLid() Example 2
include <boardgame_toolkit.scad>
MakePathBoxWithNoLid(path=[[0,0], [50,0], [50,50], [0,50]], height=20, hollow=true);

Example 3:

MakePathBoxWithNoLid() Example 3
include <boardgame_toolkit.scad>
MakePathBoxWithNoLid(path=[[0,0], [50,0], [50,50], [0,50]], height=20, stackable=true);

Module: MakePolygonBoxWithNoLid()

Description:

Makes a polygon box with no lid.

Arguments:

By Position What it does
size [width, height] outside size of the box
sides the number of sides for the polygon
stackable_lid_thickness thickness of the stackable lid (default 2)
wall_thickness thickness of the walls (default default_wall_thickness)
floor_thickness thickness of the floor (default default_floor_thickness)
stackable make the box stackable (default false)
make_finger_x makes finger dip on the x axis (default false)
make_finger_y makes finger dip on the y axis (default false)
material_colour the material colour to use (default default_material_colour)
finger_hole_size size of the finger dip (default 20)
hollow make the inside hollow (default false)
hollow_radius radius of the hollow (default object(top=2, bottom=10, radius=2))
offset_sweep_options options to pass to the offset_sweep module (default object(offset="round", check_valid=true, quality=1, steps=16))
magnet magnet to use (default object(type=MAGNET_SLOT_TYPE_NONE, size=[0, 0, 0]))

Example 1:

MakePolygonBoxWithNoLid() Example 1
include <boardgame_toolkit.scad>
MakePolygonBoxWithNoLid(size = [100, 100, 20], sides = 6);




Clone this wiki locally