Skip to content

hinge_box.scad

pinkfish edited this page Oct 23, 2024 · 10 revisions

LibFile: 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>

File Contents

  1. Section: Hinges

Section: Hinges

Module: HingeCone()

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:

HingeCone() Example 1
include <boardgame_toolkit.scad>
HingeCone(6, 0.5);




Module: HingeLine()

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:

HingeLine() Example 1
include <boardgame_toolkit.scad>
HingeLine(length = 60, diameter = 6, offset = 0.5);




Module: HingeLineWithSpacingAndNum()

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:

HingeLineWithSpacingAndNum() Example 1
include <boardgame_toolkit.scad>
HingeLineWithSpacingAndNum(num = 10, spacing = 6, diameter = 6, offset = 0.5);

Module: InsetHinge()

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:

InsetHinge() Example 1
include <boardgame_toolkit.scad>
InsetHinge(length = 100, width = 20, diameter = 6, offset = 0.5);

Module: MakeBoxWithInsetHinge()

Topics: Hinges, HingeBox

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.

Arguments:

By Position What it does
width outside with of the box
length outside length of the box
height outside height of the box

Example 1:

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




Clone this wiki locally