64 lines
1.8 KiB
OpenSCAD
64 lines
1.8 KiB
OpenSCAD
/* https://github.com/BelfrySCAD/BOSL2 */
|
|
include <BOSL2/std.scad>
|
|
include <BOSL2/screws.scad>
|
|
|
|
lap_height = 127;
|
|
lap_depth = 9;
|
|
wall_width = 500;
|
|
|
|
hanger_length = 125;
|
|
hanger_diag_length = sqrt(2)*hanger_length;
|
|
hanger_width = 20;
|
|
hanger_thickness = 7;
|
|
hanger_overlap = 20;
|
|
hanger_rounding = 2;
|
|
|
|
hook_hole_diameter = 5;
|
|
|
|
$fn = 120;
|
|
|
|
module LapPlank() {
|
|
// Define the triangular profile for the siding
|
|
// We use a polygon for the wedge shape
|
|
path = [[0, 0], [lap_depth, 0], [0, lap_height], [0, 0]];
|
|
|
|
// Sweep the profile across the width of the wall
|
|
linear_extrude(wall_width) polygon(path);
|
|
}
|
|
|
|
module BackPattern() {
|
|
rotate([90,0,0])
|
|
translate([0,-lap_height/2,-wall_width/2])
|
|
ycopies(lap_height, l=wall_width)
|
|
LapPlank();
|
|
}
|
|
|
|
module Hanger() {
|
|
/* Main beam */
|
|
right(lap_depth)
|
|
cuboid([hanger_length+hanger_overlap,hanger_width,hanger_thickness], rounding=hanger_rounding, anchor=LEFT);
|
|
|
|
/* Diag beam */
|
|
up(hanger_length) right(lap_depth)rotate([0,45,0])
|
|
cuboid([hanger_diag_length,hanger_width,hanger_thickness], rounding=hanger_rounding, anchor=LEFT);
|
|
|
|
/* Back beam */
|
|
down(hanger_overlap)
|
|
cuboid([hanger_thickness+lap_depth,hanger_width,hanger_length+2*hanger_overlap], rounding=hanger_rounding, anchor=LEFT+BOTTOM);
|
|
}
|
|
|
|
difference() {
|
|
Hanger();
|
|
group() {
|
|
BackPattern();
|
|
|
|
translate([hanger_thickness+lap_depth,0,-(hanger_thickness/2+hanger_overlap)/2]) rotate([0,90,0]) screw_hole("#8,2",head="flat",anchor=TOP);
|
|
|
|
translate([hanger_thickness+lap_depth,0,hanger_length+(hanger_thickness/2+hanger_overlap)/2]) rotate([0,90,0]) screw_hole("#8,2",head="flat",anchor=TOP);
|
|
|
|
/* Hook hole */
|
|
right(hanger_length+hanger_overlap)
|
|
zcyl(d=hook_hole_diameter, h=hanger_thickness);
|
|
}
|
|
}
|