Skip to content

filament_hinge_box.scad

pinkfish edited this page Jun 6, 2026 · 2 revisions

LibFile: filament_hinge_box.scad

This file has all the modules needed to generate a filament hinge box.

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

include <boardgame_toolkit.scad>

File Contents

Function: HingeOptions()

Topics: Hinges, FilamentHingeBox

Description:

Returns the object containing the hinge options.

Arguments:

By Position What it does
thickness thickness of the hinge
hole_diameter diameter of the hinge hole (default=6)

Module: MakeBoxWithFilamentHingeLid()

Topics: Hinges, FilamentHingeBox

Usage: MakeBoxWithFilamentHingeLid(size=[100, 50, 20]);

Description:

Makes a box with a filament hinge on the top. The hole for the filement is specified as a an argument to the system.

Arguments:

By Position What it does
size outside size of the box [width, length, height]
wall_thickness thickness of the walls (default default_wall_thickness)
floor_thickness thickness of the floor (default default_floor_thickness)
lid_thickness thickness of the lid (default default_lid_thickness)
material_colour the colour of the material in the box (default default_material_colour)
filament_thickness the thickness of the filement in hinger (default 2.2)
spin the spin to spin the box by (default 0)
anchor the anchor to use (default BOTTOM + FRONT + LEFT)
orient the orientation to use (default UP)

Example 1:

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




Module: FilamentBoxInsideMask()

Topics: Boxes, FilamentHinges

Description:

The inside mask to use as an intersection to make sure any inside cuts don't mess with the hinges.

Arguments:

By Position What it does
size [width, length, height] of the box
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box

Example 1:

FilamentBoxInsideMask() Example 1
include <boardgame_toolkit.scad>
FilamentBoxInsideMask([100, 20, 10]);




Module: MakeLidForFilamentBox()

Topics: Boxes, Hinges

Description:

Makes a lid for a box with a filament based hinge.

Arguments:

By Position What it does
size [width, length, height] of the box
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box

Example 1:

MakeLidForFilamentBox() Example 1
include <boardgame_toolkit.scad>
MakeLidForFilamentBox([100, 20, 6, 0.5]);




Module: FilamentHingeBoxLidWithCustomShape()

Topics: Boxes, Hinges

Description:

Makes a lid for a box with a filament based hinge and a custom shape.

Arguments:

By Position What it does
size [width, length, height] of the box
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box
hinge_options options for the hinge
print_in_place_offset offset for print in place mechanisms
size_spacing wiggle room for size
lid_pattern_dense boolean if the pattern is dense
lid_dense_shape_edges number of edges for the dense shape
aspect_ratio aspect ratio of the elements
pattern_inner_control if the shape needs inner control (default false)
lid_boundary bounding edge for shape generation on the lid (default 10)
layout_width width of the layout

Example 1:

FilamentHingeBoxLidWithCustomShape() Example 1
include <boardgame_toolkit.scad>
FilamentHingeBoxLidWithCustomShape([100, 20, 6]) circle(r=5);




Module: FilamentHingeBoxLidWithLabelAndCustomShape()

Topics: Boxes, Hinges

Description:

Makes a lid for a box with a filament based hinge, a text label, and a custom shape.

Arguments:

By Position What it does
size [width, length, height] of the box
text_str the string to use for the label
label_options options for the label
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box
hinge_options options for the hinge
print_in_place_offset offset for print in place mechanisms
size_spacing wiggle room for size
lid_pattern_dense boolean if the pattern is dense
aspect_ratio aspect ratio of the elements
pattern_inner_control if the shape needs inner control (default false)
lid_boundary bounding edge for shape generation on the lid (default 10)
layout_width width of the layout

Example 1:

FilamentHingeBoxLidWithLabelAndCustomShape() Example 1
include <boardgame_toolkit.scad>
FilamentHingeBoxLidWithLabelAndCustomShape([100, 20, 6], "Label") circle(r=5);

Module: FilamentHingeBoxLidWithShape()

Topics: Boxes, Hinges

Description:

Makes a lid for a box with a filament based hinge and a pre-defined shape.

Arguments:

By Position What it does
size [width, length, height] of the box
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box
hinge_options options for the hinge
print_in_place_offset offset for print in place mechanisms
size_spacing wiggle room for size
lid_boundary bounding edge for shape generation on the lid (default 10)
layout_width width of the layout
aspect_ratio aspect ratio of the elements
shape_options options for the shape

Example 1:

FilamentHingeBoxLidWithShape() Example 1
include <boardgame_toolkit.scad>
FilamentHingeBoxLidWithShape([100, 20, 6], shape_options=MakeShapeObject());

Module: FilamentHingeBoxLidWithLabel()

Topics: Boxes, Hinges

Description:

Makes a lid for a box with a filament based hinge, a text label, and a pre-defined shape.

Arguments:

By Position What it does
size [width, length, height] of the box
text_str the string to use for the label
label_options options for the label
wall_thickness wall thickness of the box
floor_thickness floor thickness of the box
lid_thickness lid thickness of the box
material_colour material colour of the box
filament_thickness filament thickness of the box
rounding rounding of the box
hinge_options options for the hinge
print_in_place_offset offset for print in place mechanisms
size_spacing wiggle room for size
lid_boundary bounding edge for shape generation on the lid (default 10)
layout_width width of the layout
aspect_ratio aspect ratio of the elements
shape_options options for the shape

Example 1:

FilamentHingeBoxLidWithLabel() Example 1
include <boardgame_toolkit.scad>
FilamentHingeBoxLidWithLabel([100, 20, 6], "Label");




Clone this wiki locally