29 lines
1.1 KiB
OpenSCAD
29 lines
1.1 KiB
OpenSCAD
/* https://github.com/BelfrySCAD/BOSL2 */
|
|
include <BOSL2/std.scad>
|
|
|
|
$fn = 150;
|
|
|
|
pattern_width = 375; // Total width of pattern (mm)
|
|
pattern_height = 220; // Total height of pattern (mm)
|
|
pattern_thickness = 4; // Thickness of the entire pattern (mm)
|
|
ring_inner_diameter = 38; // Inner diameter of rings (mm)
|
|
ring_width = 2; // Width of ring walls (mm)
|
|
perimeter_width = 4; // Width of outer perimeter walls (mm)
|
|
|
|
ring_chamfer = 0.3*ring_width;
|
|
|
|
module hex_insert() {
|
|
difference() {
|
|
cube([pattern_width,pattern_height,pattern_thickness], anchor=[0,0,-1]);
|
|
cube([pattern_width-2*perimeter_width,pattern_height-2*perimeter_width,pattern_thickness], anchor=[0,0,-1]);
|
|
}
|
|
|
|
intersection() {
|
|
cube([pattern_width,pattern_height,pattern_thickness], anchor=[0,0,-1]);
|
|
grid_copies(size=[pattern_width,pattern_height], spacing=ring_inner_diameter+ring_width+ring_chamfer, stagger=true)
|
|
tube(id=ring_inner_diameter, wall=ring_width, h=pattern_thickness, ichamfer2=ring_chamfer, anchor=[0,0,-1]);
|
|
}
|
|
}
|
|
|
|
hex_insert();
|