-
Notifications
You must be signed in to change notification settings - Fork 2
hinge_box.scad
This file has all the modules needed to generate a hinge box.
To use, add the following lines to the beginning of your file:
include <boardgame_toolkit.scad>
Topics: Hinges
Usage: HingeCone(6, 0.5)
Description:
Makes the hinge cone for use in hinges, this makes a 45 degree cone with an inner/outer that can be joined with other pieces to make a hinge.
Arguments:
| By Position | What it does |
|---|---|
r |
radius of the cone |
offset |
how far inside the cone to leave space |
Example 1:
include <boardgame_toolkit.scad>
HingeCone(6, 0.5);
Topics: Hinges
Description:
Makes a hinge setup in a straight line, has pieces that stick out each side wide enough to hook onto edges within 0.5 of the side.
Arguments:
| By Position | What it does |
|---|---|
length |
length of the line to hinge |
diameter |
diameter of the hinge itself |
offset |
how much of a space to leave on the conical holes for the hinge |
spin |
how much to rotate one of the legs (default 0) |
Example 1:
include <boardgame_toolkit.scad>
HingeLine(length = 60, diameter = 6, offset = 0.5);
Topics: Hinges
Description:
Makes a hinge setup in a straight line, has pieces that stick out each side wide enough to hook onto edges within 0.5 of the side.
Arguments:
| By Position | What it does |
|---|---|
num |
number of hinge locations |
spacing |
spacing between hinge spots |
diameter |
diameter of the hinge itself |
offset |
how much of a space to leave on the conical holes for the hinge |
spin |
how much to rotate one of the legs (default 0) |
Example 1:
include <boardgame_toolkit.scad>
HingeLineWithSpacingAndNum(num = 10, spacing = 6, diameter = 6, offset = 0.5);
Topics: Hinges
Usage: InsetHinge(100, 20, 6, 0.5);
Description:
Create a hinge that works and moves in the middle. Centers the pices back on the line with the middle being the length/2, width2/2 and the diameter/2, the legs stick down a little to make it easier to join onto other parts of the system.
Arguments:
| By Position | What it does |
|---|---|
length |
length of the hinge (outside) |
width |
width of the middle pice (outside) |
diameter |
diameter of the round piece in the middle. |
offset |
how much to offset the middle sections, 0.5 is usually good for this |
Example 1:
include <boardgame_toolkit.scad>
InsetHinge(length = 100, width = 20, diameter = 6, offset = 0.5);
Description:
Makes a label for one side of a hinge box.
Arguments:
| By Position | What it does |
|---|---|
lid_boundary |
boundary around the outside for the lid (default 10) |
cap_height |
height of the cap on the box (default 10) |
lid_thickness |
thickness of the lid (default default_lid_thickness) |
wall_thickness |
thickness of the walls (default default_wall_thickness) |
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) |
text_str |
the string to use for the label |
text_length |
the length of the text to use (defaults to 3/4 of length/width) |
text_scale |
the scale of the text, making it higher or shorter on the width (default 1.0) |
label_radius |
radius of the label corners (default text_width/4) |
label_type |
the type of the label (default default_label_type) |
label_border |
border of the item (default 2) |
label_offset |
offset in from the edge for the label (default 4) |
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) |
lid_pattern_dense |
if the layout is dense (default false) |
lid_dense_shape_edges |
the number of edges on the dense layout (default 6) |
label_colour |
the color of the label (default undef) |
material_colour |
the colour of the material in the box (default default_material_colour) |
label_background_colour |
the colour of the label background (default default_label_background_colour) |
inner_control |
if the shape needs inner control (default false) |
finger_hole_size |
size of the finger hole to use in the lid (default 10) |
Usage: MakeBoxAndLidWithInsetHinge(100, 50, 20);
Description:
Makes a box with an inset hinge on the side, this is a print in place box with a hinge that will make lid hinge onto the top, it is the same height on both sides, child 1 is in the base, child 2 is in the lid and child 3+ are lid pieces. Inside the children of the box you can use the $inner_height , $inner_width, $inner_length = length variables to deal with the box sizes.
Arguments:
| By Position | What it does |
|---|---|
width |
outside with of the box |
length |
outside length of the box |
height |
outside height of the box |
lid_thickness |
thickness of the lid (default default_lid_thickness) |
wall_thickness |
thickness of the walls (default default_wall_thickness) |
floor_thickness |
thickness of the floor (default default_floor_thickness) |
material_colour |
the colour of the material in the box (default default_material_colour) |
Example 1:
include <boardgame_toolkit.scad>
MakeBoxAndLidWithInsetHinge(100, 50, 20);
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: