Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
// HomeRacker - Keystone Test
//
// Test file for keystone module — exercises all rotation angles,
// label variants, and panel_depth configurations.
include <../lib/keystone.scad>
// Default: keystone_full at 0° rotation
keystone_full();
// 90° rotation with labels
right(30)
keystone_full(yrot = 90, add_label_slots = true, show_label = true);
// 180° rotation, thicker panel
right(60)
keystone_full(yrot = 180, panel_depth = BASE_UNIT);
// 270° rotation, no labels
right(95)
keystone_full(yrot = 270, add_label_slots = false);
// Debug colors enabled
right(125)
keystone_full(yrot = 0, debug_colors = true, show_label = true);
// Standalone label plate
right(155)
label_plate(yrot = 0);
// Demo panel
right(185)
keystone_demo_panel(yrot = 90, panel_depth = 15);
// Plate mode: label above panel
right(220)
keystone_full(show_label = true, label_plate_mode = "plate", label_plate_gap = 15);
// Demo panel in plate mode
right(255)
keystone_demo_panel(label_plate_mode = "plate", add_label = true);
// Label below the jack (0° rotation)
right(290)
keystone_full(label_position = "below", show_label = true);
// Label below the jack, rotated 90° (exercises mirrored slot offset)
right(320)
keystone_full(yrot = 90, label_position = "below", show_label = true);
// Demo panel with label below
right(355)
keystone_demo_panel(label_position = "below", add_label = true);
// --- Geometry backend coverage: render the full part on both backends ---
// Native backend (default) — explicit
right(390)
keystone_full(show_label = true, $ks_native = true);
// BOSL2 backend — exercises the attachable/diff path and debug colors
right(420)
keystone_full(show_label = true, debug_colors = true, $ks_native = false);
// Standalone label plate on both backends
right(450)
label_plate($ks_native = true);
right(480)
label_plate($ks_native = false);
4121c9fb7This file is pinned to the selected release. Download the original to open it in your design tool.