Adding XANTRONIX Industrial sextile: *chef kiss*
This commit is contained in:
parent
d5b4b6c541
commit
e1b42f8e95
1 changed files with 33 additions and 6 deletions
|
@ -221,19 +221,45 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module badge() {
|
module logotype() {
|
||||||
module badge_text() {
|
module logotype_text(size) {
|
||||||
text("XANTRONIX", font="Proxima Nova Semibold", size=2);
|
size_ratio = 1/5;
|
||||||
|
|
||||||
|
text("XANTRONIX", font="Proxima Nova Semibold", size=size*size_ratio);
|
||||||
|
|
||||||
translate([16, 0, 0])
|
translate([16, 0, 0])
|
||||||
text("Z32", font="Proxima Nova Semibold", size=10);
|
text("Z32", font="Proxima Nova Semibold", size=size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size = 10;
|
||||||
|
|
||||||
translate([keyboard_x_offset,
|
translate([keyboard_x_offset,
|
||||||
keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width,
|
keyboard_y_offset + keyboard_pcb_length + keyboard_switch_length + accent_width,
|
||||||
wall_height - accent_depth])
|
wall_height - accent_depth])
|
||||||
linear_extrude(accent_depth + eps)
|
linear_extrude(accent_depth + eps)
|
||||||
badge_text();
|
logotype_text(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
module sextile() {
|
||||||
|
module shape(width) {
|
||||||
|
ratio = 33 / 197;
|
||||||
|
margin = 0.5;
|
||||||
|
|
||||||
|
for (angle = [0, -55, 55]) {
|
||||||
|
rotate([0, 0, angle])
|
||||||
|
square([width + margin, ratio * width + 2*margin], true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
width = 16.0;
|
||||||
|
offset_y = keyboard_y_offset + (keyboard_switch_width + accent_width) / 2;
|
||||||
|
offset_x = case_width_bottom - width;
|
||||||
|
|
||||||
|
echo(offset_x, offset_y);
|
||||||
|
|
||||||
|
translate([offset_x, offset_y, wall_height - accent_depth])
|
||||||
|
linear_extrude(accent_depth + eps)
|
||||||
|
shape(width);
|
||||||
}
|
}
|
||||||
|
|
||||||
module body() {
|
module body() {
|
||||||
|
@ -257,7 +283,8 @@ module top_case(key_switch_sizes, pcb_screw_holes) {
|
||||||
|
|
||||||
difference() {
|
difference() {
|
||||||
body();
|
body();
|
||||||
badge();
|
logotype();
|
||||||
|
sextile();
|
||||||
accents();
|
accents();
|
||||||
vents();
|
vents();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue