3d/Logo_maride.scad

93 lines
2.7 KiB
OpenSCAD
Raw Normal View History

2017-11-27 01:09:59 +00:00
LETTER_WIDTH=8;
2017-11-27 00:29:12 +00:00
LETTER_HEIGHT=30;
2017-11-27 01:09:59 +00:00
LETTER_HEIGHT_12=LETTER_HEIGHT/2;
LETTER_HEIGHT_13=LETTER_HEIGHT/3;
LETTER_HEIGHT_23=LETTER_HEIGHT*2/3;
2017-11-27 01:09:59 +00:00
LETTER_HEIGHT_14=LETTER_HEIGHT/4;
LETTER_HEIGHT_34=LETTER_HEIGHT*3/4;
LETTER_HEIGHT_15=LETTER_HEIGHT/5;
LETTER_HEIGHT_25=LETTER_HEIGHT*2/5;
LETTER_HEIGHT_35=LETTER_HEIGHT*3/5;
LETTER_HEIGHT_45=LETTER_HEIGHT*4/5;
2017-11-27 00:29:12 +00:00
// m
polygon(points=[[0,LETTER_HEIGHT_23], [0, LETTER_HEIGHT_13], [LETTER_WIDTH, LETTER_HEIGHT_23], [LETTER_WIDTH, LETTER_HEIGHT]]);
2017-11-27 00:29:12 +00:00
translate([LETTER_WIDTH*2, 0])
polygon(points=[[0,LETTER_HEIGHT_23], [0, LETTER_HEIGHT/3], [LETTER_WIDTH/2, LETTER_HEIGHT_23], [LETTER_WIDTH/2, LETTER_HEIGHT]]);
2017-11-27 00:29:12 +00:00
translate([LETTER_WIDTH*3.5, 0])
polygon(points=[[0,LETTER_HEIGHT_23], [0, LETTER_HEIGHT/3], [LETTER_WIDTH/2, LETTER_HEIGHT_23], [LETTER_WIDTH/2, LETTER_HEIGHT]]);
2017-11-27 00:29:12 +00:00
translate([LETTER_WIDTH, 0])
square([LETTER_WIDTH, LETTER_HEIGHT]);
translate([LETTER_WIDTH*2.5, 0])
square([LETTER_WIDTH, LETTER_HEIGHT]);
translate([LETTER_WIDTH*4, 0])
square([LETTER_WIDTH, LETTER_HEIGHT]);
2017-11-27 01:09:59 +00:00
// a
translate([LETTER_WIDTH*6, 0]) {
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_25])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_45])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
square([LETTER_WIDTH, LETTER_HEIGHT_35]);
translate([LETTER_WIDTH*2, 0])
square([LETTER_WIDTH, LETTER_HEIGHT]);
}
// r
translate([LETTER_WIDTH*10, 0]) {
translate([0, LETTER_HEIGHT_25])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_45])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
square([LETTER_WIDTH, LETTER_HEIGHT]);
translate([LETTER_WIDTH*2, LETTER_HEIGHT_25])
square([LETTER_WIDTH, LETTER_HEIGHT_35]);
polygon(points=[
[LETTER_WIDTH, LETTER_HEIGHT_13],
[LETTER_WIDTH, LETTER_HEIGHT_12],
[LETTER_WIDTH*1.5, LETTER_HEIGHT_12],
[LETTER_WIDTH*3, LETTER_HEIGHT_15],
[LETTER_WIDTH*3, 0],
[LETTER_WIDTH*2.5, 0]
]);
}
// i
translate([LETTER_WIDTH*14, 0]) {
square([LETTER_WIDTH, LETTER_HEIGHT]);
}
// a
translate([LETTER_WIDTH*16, 0]) {
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_25])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
square([LETTER_WIDTH, LETTER_HEIGHT_35]);
translate([LETTER_WIDTH*2, 0])
square([LETTER_WIDTH, LETTER_HEIGHT]);
}
// e
translate([LETTER_WIDTH*20, 0]) {
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_25])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
translate([0, LETTER_HEIGHT_45])
square([LETTER_WIDTH*3, LETTER_HEIGHT_15]);
square([LETTER_WIDTH, LETTER_HEIGHT]);
translate([LETTER_WIDTH*2, LETTER_HEIGHT_25])
square([LETTER_WIDTH, LETTER_HEIGHT_35]);
}