Skip to content

sliding_catch_box.scad

pinkfish edited this page Nov 12, 2024 · 13 revisions

LibFile: sliding_catch_box.scad

This file has all the modules needed to generate a sliding catch box.

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

include <boardgame_toolkit.scad>

File Contents

  1. Section: SlidingCatch

Section: SlidingCatch

Module: MakeBoxWithSlidingCatchLid()

Topics: SlidingCatch

Usage: MakeBoxWithSlidingCatchLid(100, 50, 20);

Arguments:

By Position What it does
width outside width of the box
length inside width of the box
height outside height of the box
lid_thickness thickness of the lid (default 1)
wall_thickness thickness of the walls (default 2)
floor_thickness thickness of the floor (default 2)
size_sizeing amount of wiggle room between pieces (default m_piece_wiggle_room)
top_thickness the thickness of the all above the catch (default 2)

Example 1:

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




Module: SlidingCatchBoxLid()

Topics: SlidingCatch

Usage: MakeBoxWithSlidingCatchLid(100, 50, 20);

Arguments:

By Position What it does
width outside width of the box
length inside width of the box
lid_thickness thickness of the lid (default 1)
wall_thickness thickness of the walls (default 2)
floor_thickness thickness of the floor (default 2)
size_sizeing amount of wiggle room between pieces (default m_piece_wiggle_room)
top_thickness the thickness of the all above the catch (default 2)

Example 1:

SlidingCatchBoxLid() Example 1
include <boardgame_toolkit.scad>
MakeBoxWithSlidingCatchLid(100, 50, 20);




Module: SlidingCatchBoxLidWithLabel()

Topics: SlidingCatch

Usage: SlidingCatchBoxLidWithLabel(100, 50, text\_width = 70, text\_height = 20, text\_str = "Frog");

Description:

Lid for a sliding catch with a label on top of it.

Arguments:

By Position What it does
width outside width of the box
length inside width of the box
lid_boundary boundary around the outside for the lid (default 10)
lid_thickness thickness of the lid (default 1)
top_thickness thickness of the top above the lid (default 1)
wall_thickness thickness of the walls (default 2)
size_sizeing amount of wiggle room between pieces (default m_piece_wiggle_room)
lid_wall_thickness the thickess of the walls in the lid (default wall_thickness / 2)
finger_hold_height how heigh the finger hold bit it is (default 5)
label_radius radius of the label corners (default 12)
border border of the item (default 2)
offset offset in from the edge for the label (default 4)
label_rotated if the label is rotated (default false)
layout_width the width of the layout pieces (default default_lid_layout_width)
shape_width width of the shape (default default_lid_shape_width)
shape_thickness how wide the pieces are (default default_lid_shape_thickness)
aspect_ratio the aspect ratio (multiple by dy) (default default_lid_aspect_ratio)
size_spacing extra spacing to apply between pieces (default m_piece_wiggle_room)

Example 1:

SlidingCatchBoxLidWithLabel() Example 1
include <boardgame_toolkit.scad>
SlidingCatchBoxLidWithLabel(100, 50, text_width = 70, text_height = 20, text_str = "Frog");

Clone this wiki locally