openscad-models/light-switches/gfci-paddle-switch-extended-offset-2d.scad
Cal Corum 201b627841 Add asymmetric offset GFCI plate variant
New plate with off-center opening:
- Total width: 177.8mm (7 inches)
- Left of opening: 63.5mm (2.5 inches)
- Right of opening: 114.3mm (4.5 inches)
- Height unchanged: 230mm

Opening and screw holes remain at origin (X=0).
Includes 2D template SVG for paper test-fit.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-20 18:13:43 -06:00

49 lines
1.5 KiB
OpenSCAD

// 2D projection for paper test fit - OFFSET VERSION
// Print this at 100% scale (no scaling)
include <BOSL2/std.scad>
// Asymmetric plate dimensions
plate_left = 63.5; // mm (2.5 inches)
plate_right = 114.3; // mm (4.5 inches)
plate_width = 177.8; // mm (7 inches total)
plate_x_offset = 25.4; // mm (1 inch) - plate center offset
plate_height = 230.0;
plate_corner_radius = 3.0;
opening_width = 34.0;
opening_height = 67.0;
opening_corner_radius = 2.0;
// Main screw holes (pill-shaped)
screw_hole_height = 6.0;
screw_hole_width = 14.0;
screw_hole_spacing = 83.3;
// Outer screw holes (circular)
outer_screw_hole_offset = 6.35;
outer_screw_hole_diameter = 2.68;
$fn = 64;
difference() {
// Plate body (offset in X)
translate([plate_x_offset, 0])
rect([plate_width, plate_height], rounding=plate_corner_radius);
// Opening (at origin)
rect([opening_width, opening_height], rounding=opening_corner_radius);
// Main screw holes (pill-shaped, at origin)
translate([0, screw_hole_spacing/2])
rect([screw_hole_width, screw_hole_height], rounding=screw_hole_height/2);
translate([0, -screw_hole_spacing/2])
rect([screw_hole_width, screw_hole_height], rounding=screw_hole_height/2);
// Outer screw holes (circular, at origin)
translate([0, screw_hole_spacing/2 + outer_screw_hole_offset])
circle(d=outer_screw_hole_diameter);
translate([0, -screw_hole_spacing/2 - outer_screw_hole_offset])
circle(d=outer_screw_hole_diameter);
}