-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathmm2logo.scad
75 lines (66 loc) · 1.93 KB
/
mm2logo.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// The Metamáquina logo and name are trademarks of
// Metamaquina Comercio de Kits Eletrônicos Ltda
// and cannot not be used without express written authorization.
//
// (c) 2013 Metamáquina <http://www.metamaquina.com.br/>
//
// Author:
// * Felipe C. da S. Sanches <fsanches@metamaquina.com.br>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
module mm_logo(){
translate([-10,-6])
import("MM_logo_small.dxf");
}
module MM2_logo(){
difference(){
import("metamaquina-2.dxf");
remove_original_letter_Q();
}
new_letter_Q(37); //Tony, mude o valor dessa linha. A sua tipografia original corresponde ao valor 29. Quanto maior este valor, menos frágil fica o corte a laser na madeira.
}
line_thickness=3.1;
r=line_thickness/2;
length = 6;
N=120;
R=8.4;
module new_letter_Q(angle=29){
start = angle;
end = 360 - angle;
translate([111.5,4.52]){
hull(){
for (j=[-1,1])
translate([0,j*length/2])
circle(r=r, $fn=50);
}
translate([0,8.4])
for (i=[0:N])
rotate(-90 + start + (i/N)*(end-start))
translate([R,0])
circle(r=r, $fn=50);
}
}
module remove_original_letter_Q(){
translate([111.5,4.52+8.4]){
color("green"){
circle(r=11);
hull(){
for (j=[-1,1])
translate([0,-8.4+j*length/2])
circle(r=3.3, $fn=50);
}
}
}
}
MM2_logo();