3d-printing/lib/label-decorations
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Felipe M. e13e743d9d
Add battery symbol and switch box label preset to "PILAS"
Add sym_battery to the shared label decoration library: an upright cell
with a solid terminal nub and "+"/"-" marks in the hollow body. Register
it in symbol_shape and add it to the customizer dropdowns of both the bin
label and the box label.

Switch the gridfinity-box-label customizer defaults to a centered "PILAS"
text flanked by two battery symbols, replacing the M2-M5 screw preset.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WMwnWKAqyrQveSoyi6o93
2026-09-09 22:31:46 +02:00
..
symbols Add battery symbol and switch box label preset to "PILAS" 2026-09-09 22:31:46 +02:00
label-decorations.scad Add battery symbol and switch box label preset to "PILAS" 2026-09-09 22:31:46 +02:00
README.md Add battery symbol and switch box label preset to "PILAS" 2026-09-09 22:31:46 +02:00

Label Decorations

Shared symbol shapes and rendering primitives for gridfinity-bin-label and gridfinity-box-label. Adding a new icon shape to label-decorations.scad makes it available to both labels at once.

Usage

use <../lib/label-decorations/label-decorations.scad>

// 2D symbol centered at origin, fitting within a circle of diameter d
symbol_shape("hex_rounded", d = 7, stroke = 1);

// Extruded text or symbol positioned within a label
label_text(text_str, x, y, z, size, font, style, align, extrude_h);
label_symbol(name, x, y, z, size, stroke, extrude_h);

Symbol Catalogue

Top-down screw head views (showing what the head looks like from above):

Symbol Value Description
hex_rounded Hex socket cap screw (round head with hex socket)
hex_flat Hex bolt head (flat hexagonal head)
phillips Phillips cross drive
slotted Slotted (single-slot) drive
torx Torx (six-pointed star) drive
square Square (Robertson) drive
pozidriv Pozidriv (Phillips + diagonal cross) drive

Drive-bit shapes (just the drive symbol, without a surrounding head circle — visually lighter and pairs well with text):

Symbol Value Description
bit_phillips Phillips cross
bit_slotted Slotted bar
bit_hex Hex (Allen)
bit_torx Torx star
bit_square Square (Robertson)
bit_pozidriv Pozidriv (Phillips + diagonal cross)

Side-profile screw silhouettes (showing the screw from the side, head + threaded shaft):

Symbol Value Description
side_cap Hex socket cap screw — cylindrical head
side_flat Countersunk flat head
side_pan Pan head (rounded dome with skirt)
side_button Button head (low rounded dome)
side_hex Hex bolt with chamfered head

Other:

Symbol Value Description
washer Washer (top-down annular ring)
nut Hex nut (top-down hex with large thread hole)
printer 3D printer silhouette (frame, print bed, gantry, nozzle)
magnet Horseshoe magnet (U-shape with pole tips)
battery Battery cell (upright body with terminal nub and +/- marks)

Regenerating Thumbnails

The symbol thumbnails in symbols/ are produced from symbols/render.scad. See the comments at the top of that file for the openscad invocation.