This commit is contained in:
parent
1db5e45637
commit
74837993c2
|
@ -3,30 +3,38 @@ $fn=64;
|
||||||
|
|
||||||
length = 20;
|
length = 20;
|
||||||
width = 50;
|
width = 50;
|
||||||
|
name_length = 15;
|
||||||
|
name_width = 40;
|
||||||
height = 2;
|
height = 2;
|
||||||
height_plate = 1;
|
height_plate = 1;
|
||||||
|
|
||||||
module name_file() {
|
module name_file() {
|
||||||
difference() {
|
translate([(width-name_width)/2, (length-name_length)/2, 0]) difference() {
|
||||||
square([width, length]);
|
square([name_width, name_length]);
|
||||||
resize([width, length, 0]) import("static/namensschild.dxf");
|
resize([name_width, name_length, 0]) import("static/namensschild.dxf");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module box(height) {
|
||||||
|
hull() {
|
||||||
|
for(x=[0, width]) {
|
||||||
|
for(y=[0, length]) {
|
||||||
|
translate([x, y, 0]) linear_extrude(height) circle(r=1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
union() {
|
union() {
|
||||||
hull() {
|
difference() {
|
||||||
for(x=[0, width]) {
|
box(height);
|
||||||
for(y=[0, length]) {
|
translate([1.5, 1.5, height_plate]) resize([width-1, length-1, height-height_plate]) box(height-height_plate);
|
||||||
translate([x, y, 0]) linear_extrude(height_plate) circle(r=1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
linear_extrude(height) {
|
linear_extrude(height) {
|
||||||
name_file();
|
name_file();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
translate([width-1, length-1, 0]) linear_extrude(height_plate) circle(r=1);
|
translate([width-2.5, length-2.5, 0]) linear_extrude(height_plate) circle(r=1.75);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue