Add siding models
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
include <BOSL2/std.scad>
|
||||
|
||||
lap_height = 127;
|
||||
lap_depth = 9;
|
||||
wall_width = 500;
|
||||
|
||||
ring_outer = 120;
|
||||
ring_inner = 60;
|
||||
ring_thickness = lap_depth + 2;
|
||||
ring_offset = -15; // -15 for left light, -55 for right light
|
||||
|
||||
screw_diameter = 6.5;
|
||||
screw_center_offset = 45;
|
||||
|
||||
$fn = 200;
|
||||
|
||||
module lap_plank() {
|
||||
// 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 back_pattern() {
|
||||
translate([0,-lap_height/2,-wall_width/2])
|
||||
ycopies(lap_height, l=wall_width)
|
||||
lap_plank();
|
||||
}
|
||||
|
||||
difference() {
|
||||
translate([0,ring_offset,0])
|
||||
difference() {
|
||||
xcyl(l=ring_thickness, d=ring_outer, anchor=LEFT);
|
||||
xcyl(l=ring_thickness, d=ring_inner, anchor=LEFT);
|
||||
}
|
||||
group() {
|
||||
back_pattern();
|
||||
|
||||
/* screw holes */
|
||||
translate([0,ring_offset,0]) rotate([45,0,0]) group() {
|
||||
translate([0,0,screw_center_offset]) xcyl(d=screw_diameter, l=4*ring_thickness);
|
||||
translate([0,0,-screw_center_offset]) xcyl(d=screw_diameter, l=4*ring_thickness);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user