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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
|
//Eagle3D 1.05 INC-File special.inc
//created by: INC SRC Compiler v1.06
//created on: 13.11.2006 19:31:48
//(c) 2002-2004 by M. Weisser
//or the author of the macro
#ifndef(__special_inc)
#declare __special_inc = true;
#ifndef(inc_testmode)
#declare inc_testmode=true;
#include "tools.inc"
#undef inc_testmode
#end
/********************************************************************************************************************************************
//Macros for TO220 heatsink RAWA-400 from Seifert and RA 37/3 from Seem
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.1 - 01/01/06
********************************************************************************************************************************************/
#macro SPC_HEATSINK_RAWA400_GRND (L1,D,Type)
union{
#local rawa_height=2;
#local TO220_height=1.27;
#local washer_height=0.8;
#if(global_show_screws=on)
object { TOOLS_SCREW(3,10,0,Silver) rotate 180*x translate <0,-pcb_height,0> }
#end
#if(global_show_washers=on)
object { TOOLS_WASHER(3,1,Silver) translate <0,+rawa_height+TO220_height,0> }
#end
#if(global_show_nuts=on)
object { TOOLS_NUT(3,0,Silver) translate <0,+rawa_height+TO220_height+washer_height,0> }
#end
difference{
union{
box{<-8,0,-6><17,02,+6> pigment{Gray20}} // base
box{<-8,0,-6><17,11,-8> pigment{Gray20}} // side
box{<-8,0,+6><17,11,+8> pigment{Gray20}} // side
}
union{
box{<L1,-0.1,-5.5><17.1,2.1,+5.5> pigment{Gray20}}
cylinder{<0,-.1,0><0,2.1,0> D/2 pigment{Gray20}}
#if(Type=2)
cylinder{<-2.5,-.1,0><-2.5,2.1,0> D/2 pigment{Gray20}}
box{<-2.5,-0.1,-D/2><0,2.1,D/2> pigment{Gray20}}
#end
}
}
}
#end
#macro SPC_HEATSINK_RAWA400_8P()
object{SPC_HEATSINK_RAWA400_GRND (13,3.8,0)}
#end
#macro SPC_HEATSINK_RAWA400_9P()
object{SPC_HEATSINK_RAWA400_GRND (9,3.2,1)}
#end
#macro SPC_HEATSINK_RAWA400_11P()
object{SPC_HEATSINK_RAWA400_GRND (9,3.2,2)}
#end
/********************************************************************************************************************************************
//Relais Uwe Lorenz <u.lorenz(replace with at)er-dresden.net>
********************************************************************************************************************************************/
#macro DK1A_L2_5V_GRND()
union{
//***** Loetstift
cylinder{<-3.76,-3.5,-11.5><-3.76,1.1,-11.5>0.3 texture{col_silver}}
cylinder{<3.76,-3.5,-11.5><3.76,1.1,-11.5>0.3 texture{col_silver}}
cylinder{<-3.76,-3.5,-8.96><-3.76,1.1,-8.96>0.3 texture{col_silver}}
cylinder{<3.76,-3.5,-8.96><3.76,1.1,-8.96>0.3 texture{col_silver}}
//
cylinder{<-3.76,-3.5,11.5><-3.76,1.1,11.5>0.5 texture{col_silver}}
cylinder{<3.76,-3.5,11.5><3.76,1.1,11.5>0.5 texture{col_silver}}
cylinder{<-3.76,-3.5,3.88><-3.76,1.1,3.88>0.5 texture{col_silver}}
cylinder{<3.76,-3.5,3.88><3.76,1.1,3.88>0.5 texture{col_silver}}
//***** Ende Loetstifte
//
//***** Grundkoerper
difference{
box{<-6.25,0.5,-12.5><6.25,12.0,12.5>}
box{<-2.0,10.8,8.5><2.0,12.1,12.6>}
}
//***** Ende Grundkoerper
box{<-6.25,0.0,-6.5><-6.25,0.5,-5.0>}
box{<6.25,0.0,-6.5><6.25,0.5,-5.0>}
box{<-6.25,0.0,7.5><-6.25,0.5,6.0>}
box{<6.25,0.0,7.5><6.25,0.5,6.0>}
cylinder{<0.0,10.7,10.5><0.0,11.5,10.5>1.0}
//
text {ttf besch_font "NAIS" 0, 0 pigment{Gray80} scale<4,4,4> rotate<90,-90,0>
translate<-1.5,12.05,-10>}
text {ttf besch_font "DK1a-L2-5V" 0, 0 pigment{Gray80} scale<2,2,2> rotate<90,-90,0>
translate<1.5,12.05,-10>}
text {ttf besch_font "ADE129" 0, 0 pigment{Gray80} scale<1,1,1> rotate<90,-90,0>
translate<3.0,12.05,-10>}
text {ttf besch_font "10A250V~(COS°=1.0)" 0, 0 pigment{Gray80} scale<1,1,1> rotate<90,-90,0>
translate<4.0,12.05,-10>}
text {ttf besch_font "SPULE:5V=" 0, 0 pigment{Gray80} scale<1,1,1> rotate<90,-90,0>
translate<5.0,12.05,-10>}
text {ttf besch_font "JAPAN" 0, 0 pigment{Gray80} scale<2,2,2> rotate<90,-90,0>
translate<-3.4,12.05,5>}
pigment{Gray20} translate<0,0.2,0>}
#end
#macro DK1A_L2_5V()
object{DK1A_L2_5V_GRND()}
#end
/********************************************************************************************************************************************
//Spule mit Kern: d=8mm, h=10mm
//A. Zihlmann - 12.2002 - www.wueschomania.org
********************************************************************************************************************************************/
#macro L_5MM_S_GRND(value)
/*** Die Oberflaechenstruktur: **************************************/
#local OBERFLAECHE =
texture{
pigment{White*.3}
}
/** Objekte des Spulenkoeropers ************************************/
#local L_PHASE=
torus{
4,0.5
texture { OBERFLAECHE }
}
#local L_KABELNUT=
cylinder{
<0, -4, 0>,
<0,4,0>,
0.75
texture { OBERFLAECHE }
}
#local L_BODEN=
difference{
cylinder {
<0, 0, 0>,
<0, 2, 0>,
4
texture { OBERFLAECHE }
}
union{
object{L_PHASE}
object{L_KABELNUT translate -4*x}
object{L_KABELNUT translate 4*x}
}
}
#local L_DECKEL=
object{L_BODEN rotate x*180 translate 2*y}
#local L_CORE=
cylinder {
<0, 0, 0>,
<0, 6, 0>,
2
texture {OBERFLAECHE }
}
#local L_KERN=
union{
object{L_BODEN}
object{L_CORE translate y*2}
object{L_DECKEL translate y*8}
}
/***** Kupferlackkabelemente ****************************************/
#local Drahtstaerke = .5;
#local L_WINDUNG =
torus {
3, Drahtstaerke/2
texture {T_Gold_1A }
}
#local L_ANSCHLUSS=
torus{
0.5,Drahtstaerke/2
texture{T_Gold_1A }
}
#local L_BOGEN=
difference {
torus {
1, Drahtstaerke/2
rotate -90*x
}
union{
box { <5, 5, -1>, <-5, 0, 1> }
box { <0, 5, -1>, <5, -5, 1> }
}
texture{T_Gold_1A }
}
#local L_VERBINDUNG=
cylinder{
<0,0,0>
<0,2,0>
Drahtstaerke/2
texture{T_Gold_1A }
}
#local L_SPULE=
union {
#local i=0;
#while(i<11)
object{L_WINDUNG translate i*Drahtstaerke*y}
#local i=i+1;
#end
}
/******* Die Beinchen ***************************************************/
#local L_Beinchen=
cylinder{
<0,0,0>
<0,6,0>
0.25
texture { T_Silver_1A }
}
/*** Zusammenbau der Spule: ***************************************************************/
#local L_BAUTEIL =
union{
object{L_KERN}
object{L_SPULE translate (2+Drahtstaerke/2)*y}
object{L_Beinchen translate <-2.5,-6,0>}
object{L_Beinchen translate <2.5,-6,0>}
object{L_ANSCHLUSS translate <-2.5,-1,0>}
object{L_ANSCHLUSS translate <-2.5,-0.5,0>}
object{L_BOGEN translate -3*x}
object{L_VERBINDUNG translate -4*x}
object{L_BOGEN rotate -90*z translate <-3,2,0>}
object{L_ANSCHLUSS translate <2.5,-1,0>}
object{L_ANSCHLUSS translate <2.5,-0.5,0>}
object{L_BOGEN rotate 180*y translate 3*x }
object{L_VERBINDUNG translate 4*x}
object{L_BOGEN rotate 180*z translate <3,2,0>}
text {ttf besch_font value 0.01, 0 pigment{White}
scale 2
rotate 90*x rotate 180*y
translate <2,10+0.1,-0.5>}
}
object{L_BAUTEIL translate 2*y}
#end
#macro L_5MM_S(value)
object{L_5MM_S_GRND(value)}
#end
/********************************************************************************************************************************************
//Murata Chip Coil: 2012 LQH3C/N
//R. Klenner
********************************************************************************************************************************************/
#macro L_MURATA_2012_LQH3C_GRND(value)
/*** Die Oberflaechenstruktur: **************************************/
#local OBERFLAECHE =
texture{
pigment{White*.3}
}
/** Objekte des Spulenkoerpers ************************************/
#local L_QUAD=
box{<-1.3,0,-1.3><1.3,0.35,1.3> texture { OBERFLAECHE }
}
#local Drahtstaerke = .025;
#local L_Boden=
union{
box{<-1.5,0,-1.45><1.5,0.275,1.45> texture { OBERFLAECHE }}
box{<-2,0,-1.5><-1.5,0.3,1.5> texture{T_Silver_1A}}
box{<2,0,-1.5><1.5,0.325,1.5> texture{T_Silver_1A}}
union{
difference{
cylinder{<0,0,0><0,0.45,0>1.4 texture{ OBERFLAECHE }}
cylinder{<-2,0.45,1><0,0.45,0.5> 0.2}
cylinder{<2,0.45,-1><0,0.45,-0.5> 0.2}
}
cylinder{<-1.8,0.2,1><0,0.5,0.5> Drahtstaerke texture{T_Gold_1A }}
cylinder{<1.8,0.2,-1><0,0.5,-0.5> Drahtstaerke texture{T_Gold_1A }}
}
}
#local L_CORE=
cylinder {<0, 0, 0><0, 1, 0>1 texture {OBERFLAECHE }
}
#local L_KERN=
union{
object{L_Boden}
object{L_CORE translate y*0.25}
object{L_QUAD translate y*1.25}
}
/***** Kupferlackkabelemente ****************************************/
#local L_WINDUNG =
torus {
1.1, Drahtstaerke/2
texture {T_Gold_1A }
}
#local L_SPULE=
union {
#local i=0;
#while(i<33)
object{L_WINDUNG translate i*Drahtstaerke*y}
#local i=i+1;
#end
}
/*** Zusammenbau der Spule: ***************************************************************/
#local L_BAUTEIL =
union{
object{L_KERN}
object{L_SPULE translate (0.3+Drahtstaerke/2)*y}
text {ttf besch_font value 0.01, 0 pigment{Red}
scale 0.5
rotate 90*x rotate 180*y
translate <0.35,1.51,0>}
}
object{L_BAUTEIL}
#end
#macro L_MURATA_2012_LQH3C(value)
object{L_MURATA_2012_LQH3C_GRND(value)}
#end
/********************************************************************************************************************************************
// TYCO H38 inductor
********************************************************************************************************************************************/
#macro L_TYCO_H38_GRND(value)
union{
difference{
box{<0,0,0><12,6,12>} // Body
cylinder{<6,-0.01,6><6,6.01,6> 5.5 }
cylinder{<2,-0.01,2><2,6.01,2> 1.25 }
cylinder{<2,-0.01,10><2,6.01,10> 1.25 }
cylinder{<10,-0.01,2><10,6.01,2> 1.25 }
cylinder{<10,-0.01,10><10,6.01,10> 1.25 }
}
cylinder{<6,0,6><6,5.9,6> 5 }
text {ttf besch_font value 0.1, 0 pigment{Black} scale 2 rotate<90,0,0> translate<4,6,4>}
text {ttf besch_font "H38" 0.1, 0 pigment{Black} scale 2 rotate<90,0,0> translate<4,6,6>}
}
pigment{Gray20}
translate<-6,0,-6>
#end
#macro L_TYCO_H38(value)
object{L_TYCO_H38_GRND(value)}
#end
/********************************************************************************************************************************************
//Buzzer Grundmakro
//bearbeitet von Ronny Schulz
//val_size Groesse der Beschriftung
//dis Abstand der Pins
//dia Radius des Buzzers
//hig Hoehe des Buzzers
//hole Radius des sound emission hole
//dia_b Radius des Anschlussdrahtes
********************************************************************************************************************************************/
#macro SPC_BUZZER_GRND(val_size,dis,dia,hig,hole,dia_b)
union{
union{
cylinder{<0,0,0><0,hig,0>dia pigment{Gray20}} //Buzzer Koerper
cylinder{<0,hig-1,0><0,hig+0.1,0>hole pigment{Black}} //Oeffnung oben
}
union{ //Plus Symbol
torus{(dia-hole)/3.5,0.15}
box{<-(dia-hole)/3.5,-0.15,-0.15><(dia-hole)/3.5,0.15,0.15>}
box{<-0.1,-0.15,-(dia-hole)/3.5><0.15,0.15,(dia-hole)/3.5>}
translate<(dia+hole)/2,hig,0>
pigment{Gray20}
}
#if(pin_short=off)
cylinder{<0,0,0><0,-14.5,0>dia_b texture{col_silver} translate<dis/2,0,0>} //Beinchen rechts
cylinder{<0,0,0><0,-17.5,0>dia_b texture{col_silver} translate<-dis/2,0,0>} //Beinchen links
#else
cylinder{<0,0,0><0,-1*(pcb_height+pin_length)-0.2,0>dia_b texture{col_silver} translate<dis/2,0,0>} //Beinchen rechts
cylinder{<0,0,0><0,-1*(pcb_height+pin_length)-0.2,0>dia_b texture{col_silver} translate<-dis/2,0,0>} //Beinchen links
#end
}
#end
#macro SPC_BUZZER_TDB()
object{SPC_BUZZER_GRND(1,7.62,12/2,9.5,2.5/2,1/2)}
#end
/********************************************************************************************************************************************
// Ceramic Resonator
// Producer: Abracon
// Web: www.abracon.com
// Part: ABM3B
// Carsten Koegler <koegler(replace with at)ftz-leipzig.de>
********************************************************************************************************************************************/
#macro SPC_CRES_ABRACON_ABM3B_GRND(value)
#local SPC_CRES_METAL_TEXTURE = texture { T_Chrome_5B } ;
#local SPC_CRES_TEXT_PIGMENT = pigment { White*0.5 } ;
union{
//Grundkoerper
union{
Round_Box_Union(<-2.5,0.03,-1.6>,<2.5,0.9, 1.6>, 0.05 ) pigment{White*0.1}
}
//Anschlusspads
box{<-0.5,0,-0.45><0.5,0.3,0.45> texture{col_gold} translate<-2.05,0, 1.1>}
box{<-0.5,0,-0.45><0.5,0.3,0.45> texture{col_gold} translate<-2.05,0,-1.1>}
box{<-0.5,0,-0.45><0.5,0.3,0.45> texture{col_gold} translate< 2.05,0, 1.1>}
box{<-0.5,0,-0.45><0.5,0.3,0.45> texture{col_gold} translate< 2.05,0,-1.1>}
Round_Box_Union(<-2.5,0.85,-1.6>, <2.5,1.0, 1.6>, 0.05 )
Round_Box_Union(<-2.5+0.5,0.5,-1.6+0.5>,<2.5-0.5,1.1, 1.6-0.5>, 0.05 )
text {ttf besch_font value 0.02, 0 pigment{SPC_CRES_TEXT_PIGMENT} rotate<90,0,0> scale 1.0 translate<-1.5, 1.11,-0.1>}
texture {SPC_CRES_METAL_TEXTURE}
}
#end
#macro SPC_CRES_ABRACON_ABM3B(value)
object{SPC_CRES_ABRACON_ABM3B_GRND(value)}
#end
/********************************************************************************************************************************************
//Ceramic Resonator
********************************************************************************************************************************************/
#macro SPC_CRES_MURATA_CSTCE_G_A_GRND(value)
union{
//Grundkoerper
box{<-1.6,0,-0.65><1.6,0.4,0.65> pigment{White}}
//Anschlussflaechen
box{<-0.25,0,-0.6501><0.25,0.3,0.6501> texture{col_gold}}
box{<-0.25,0,-0.6501><0.25,0.41,0.6501> texture{col_gold} translate<-1.2,0,0>}
box{<-0.25,0,-0.6501><0.25,0.41,0.6501> texture{col_gold} translate<1.2,0,0>}
difference{
Round_Box_Union(<-1.5,0.1,-0.55>,<1.5,0.7,0.55>, 0.1)
text {ttf besch_font value 0.02, 0 rotate<90,0,0> scale 0.5 translate<-1,0.701,-0.1>}
texture{col_silver}
}
}
#end
#macro SPC_CRES_MURATA_CSTCE_G_A(value)
object{SPC_CRES_MURATA_CSTCE_G_A_GRND(value)}
#end
/********************************************************************************************************************************************
// 32.768 Hz Crystal
// Producer: Abracon
// Web: www.abracon.com
// Part: ABM3B
// Carsten Koegler <koegler(replace with at)ftz-leipzig.de>
********************************************************************************************************************************************/
#macro SPC_CRYSTAL_ABRACON_ABS13_GRND(value)
#local SPC_CRYSTAL_METAL_TEXTURE = texture {col_silver};
#local SPC_CRYSTAL_PLASTIC_TEXTURE = texture { pigment{White*0.2}} ;
union{
//Grundkoerper
difference
{
box{<-3.45,0.03,-0.7> <3.45,1.3,0.7>}
box{<-3.45,0.03,-0.9> <3.45,1.3,0.9> rotate<0,0,45> translate<-4.2,0,0>}
texture{SPC_CRYSTAL_PLASTIC_TEXTURE}
}
text {ttf besch_font value 0.2, 0 pigment { Gray60 } rotate<90,0,0> scale 1.0 translate<-2.3, 1.31,-0.3>}
//Anschlusspads
box{<-0.3,0,-0.21><0.3,0.4,0.21> texture{col_silver} translate<-3.28,0, 0.50>}
box{<-0.3,0,-0.21><0.3,0.4,0.21> texture{col_silver} translate<-3.28,0,-0.50>}
box{<-0.3,0,-0.21><0.3,0.4,0.21> texture{col_silver} translate< 3.28,0, 0.50>}
box{<-0.3,0,-0.21><0.3,0.4,0.21> texture{col_silver} translate< 3.28,0,-0.50>}
}
#end
#macro SPC_CRYSTAL_ABRACON_ABS13(value)
object{SPC_CRYSTAL_ABRACON_ABS13_GRND(value)}
#end
/********************************************************************************************************************************************
// DC-DC CONVERTERs BY J. ZEGLINSKI
// DC-DC CONVERTER "NMA" D-series 6-pin DIP14 Package 1 Watt Dual output voltage (e.g. NMA1205D)
// <JAZeglinski(replace with at)rogers.com>
// C & D Technologies (formerly Newport Components) Dc-DC Converters:
********************************************************************************************************************************************/
#macro SPC_DC_DC_NMA_D_GRND(value)
union{
box{<-9.75,0,-4.9><9.75,6.8,4.9>} // Body
cylinder{<-7.62,6.85,-3.81><-7.62,6.80,-3.81> 0.5 pigment{White} } // Pin #1 marking
//
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-7.62,0,+3.81> } // six square leads
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-7.62,0,-3.81> }
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<0,0,+3.81> }
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<5.08,0,+3.81> }
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<7.62,0,-3.81> }
box{<-0.25,0,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<7.62,0,+3.81> }
//
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 rotate<90,0,0> translate<-8.75,6.81,3>} // Marking on top surface
text {ttf besch_font "DC-DC CONVERTER" 0.1, 0 pigment{White} scale 1 rotate<90,0,0> translate<-8.75,6.81,2>} // Markings front surface
text {ttf besch_font "C&D" 0.1, 0 pigment{White} scale<3.5,1.25,1> rotate<90,0,0> translate<2.41,6.81,-3.31>}
text {ttf besch_font "TECHNOLOGIES" 0.1, 0 pigment{White} scale<0.85,1,1> rotate<90,0,0> translate<2.41,6.81,-4.31>}
}
pigment{Gray20}
#end
#macro SPC_DC_DC_NMA_D(value)
object{SPC_DC_DC_NMA_D_GRND(value)}
#end
/********************************************************************************************************************************************
// DC-DC CONVERTERs BY J. ZEGLINSKI
// DC-DC CONVERTER "NMA" S-series 5-pin SIP7 Package 1 Watt Dual output voltage (e.g. NMA1205S)
// <JAZeglinski(replace with at)rogers.com>
// C & D Technologies (formerly Newport Components) Dc-DC Converters:
********************************************************************************************************************************************/
#macro SPC_DC_DC_NMA_S_GRND(value)
union{
box{<-9.75,0,-3><-9.25,0.5,3>} // Feet left and right side
box{<9.75,0,-3><9.25,0.5,3>}
box{<-9.75,0.5,-3><9.75,10,3>} // Body
cylinder{<-7.75,2.0,-3.05><-7.75,2.0,-3.00> 0.5 pigment{White} } // Pin #1 marking
//
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-7.75,0,1.75> } // five square leads
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-5.21,0,1.75> } // NB: Different from the NME_S
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-0.13,0,1.75> } // NMA_S pins along "back" edge
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<2.41,0,1.75> }
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<4.95,0,1.75> }
//
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 rotate<90,0,0> translate<-8.75,10.01,0>} // Value on top surface
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 translate<-8.75,8,-3.05>} // Markings on vertical front face
text {ttf besch_font "DC-DC CONVERTER" 0.1, 0 pigment{White} scale 1 translate<-8.75,7,-3.05>}
text {ttf besch_font "C&D" 0.1, 0 pigment{White} scale<3.5,1.25,1> translate<2.41,2.5,-3.05>}
text {ttf besch_font "TECHNOLOGIES" 0.1, 0 pigment{White} scale<0.85,1,1> translate<2.41,1.5,-3.05>}
}
pigment{Gray20} translate<1.27,0,-1.75> rotate<0,90,0>
#end
#macro SPC_DC_DC_NMA_S(value)
object{SPC_DC_DC_NMA_S_GRND(value)}
#end
/********************************************************************************************************************************************
// DC-DC CONVERTERs BY J. ZEGLINSKI
// DC-DC CONVERTER "NME" S-series 4-pin SIP4 Package 2 Watts Single output voltage (e.g. NML0505S)
// <JAZeglinski(replace with at)rogers.com>
// C & D Technologies (formerly Newport Components) Dc-DC Converters:
********************************************************************************************************************************************/
#macro SPC_DC_DC_NME_S_GRND(value)
union{
box{<-7,0,-3.75><-6.5,0.5,3.75>} // Feet left and right side
box{<7,0,-3.75><6.5,0.5,3.75>}
box{<-7,0.5,-3.75><7,10,3.75>} // Body
cylinder{<-3.81,2.0,-3.80><-3.75,2.0,-3.0> 0.5 pigment{White} } // Pin #1 marking
//
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-3.81,0,-2.5> } // four square leads
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<-1.27,0,-2.5> }
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<3.81,0,-2.5> }
box{<-0.25,0.5,-0.125><0.25,-min(4.1,(pin_length+pcb_height)),0.125 > texture{col_silver} translate<1.27,0,-2.5> }
//
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 rotate<90,0,0> translate<-6,10.01,0>}
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 translate<-6,8,-3.80>}
text {ttf besch_font "DC-DC CONVERTER" 0.1, 0 pigment{White} scale 1 translate<-6,7,-3.80>}
text {ttf besch_font "C&D" 0.1, 0 pigment{White} scale<3.5,1.25,1> translate<-1.27,2.5,-3.80>}
text {ttf besch_font "TECHNOLOGIES" 0.1, 0 pigment{White} scale<0.85,1,1> translate<-1.27,1.5,-3.80>}
}
pigment{Gray20} translate<0,0,2.5> rotate<0,90,0>
#end
#macro SPC_DC_DC_NME_S(value)
object{SPC_DC_DC_NME_S_GRND(value)}
#end
/********************************************************************************************************************************************
//Fuse Holder
//(c) 2003 Juraj Rojko
********************************************************************************************************************************************/
#macro SPC_FUSE1_GRND(value)
union
{
#macro SPC_FUSE1_HOLDER()
union
{
// base plate
box { <-.1,0,-2>,<4.3,.2,2>}
box { <4.6,0,-2>,<-.4,.2,-1.4> }
box { <4.6,0,2>,<-.4,.2,1.4> }
// 1st pin
box { <-.5,-5,-.4>,<-.3,-.2,.4> }
intersection {
difference {
cylinder{<-.1,-.2,-.4><-.1,-.2,.4>.4}
cylinder{<-.1,-.2,-.4><-.1,-.2,.4>.2 open}
}
box { <-.5,-.2,-.4>,<-0.1,.2,.4>}
}
// 2nd pin
box { <4.5,-5,-.4>,<4.7,-.2,.4> }
intersection {
difference {
cylinder{<4.3,-.2,-.4><4.3,-.2,.4>.4}
cylinder{<4.3,-.2,-.4><4.3,-.2,.4>.2 open}
}
box { <4.3,-.2,-.4>,<4.7,.2,.4>}
}
// 1st holder arm
box { <0,0,-2>,<4.25,4.4,-2.2> rotate<3,0,0>}
intersection {
difference {
cylinder{<0,6,.65><4.25,6,.65>3}
cylinder{<0,6,.65><4.25,6,.65>2.8 open}
}
box { <-.1,4.4,-1.8>,<4.3,8,-3>}
}
intersection {
box { <0,7.3,-1.8>,<4.25,9.2,-2>}
cylinder {<2.125,7,-5><2.125,7,5>2.5}
}
// 2st holder arm
box { <0,0,2>,<4.25,4.4,2.2> rotate<-3,0,0>}
intersection {
difference {
cylinder{<0,6,-.65><4.25,6,-.65>3}
cylinder{<0,6,-.65><4.25,6,-.65>2.8 open}
}
box { <-.1,4.4,1.8>,<4.3,8,3>}
}
intersection {
box { <0,7.3,1.8>,<4.25,9.2,2>}
cylinder {<2.125,7,-5><2.125,7,5>2.5}
}
texture{col_silver}
}
#end
#macro SPC_FUSE1_CUP()
union
{
difference {
cylinder{<0,6,0><3.5,6,0>2.15 }
cylinder{<0.2,6,0><3.5,6,0>2 open}
}
torus{2.15-.3,.3 rotate<0,0,90> translate<0,6,0>}
// drop of solder
difference {
sphere{<.8,6,0>1.2}
box {<0,4,-2><3,8,2>}
}
translate<.3,0,0>
texture{col_silver}
}
#end
#if (on) // draw holder on/off
object {
SPC_FUSE1_HOLDER()
rotate<0,0,0> translate<-10,0,0>
texture{col_silver}
}
object {
SPC_FUSE1_HOLDER()
rotate<0,180,0> translate<10,0,0>
texture{col_silver}
}
#end
#if (on) // draw fuse on/off
object
{
SPC_FUSE1_CUP()
rotate<0,0,0> translate<-10,0,0>
texture{col_silver}
}
// glass tube
difference {
cylinder{<-9,6,0><9,6,0>2}
cylinder{<-9,6,0><9,6,0>1.8}
texture {T_Green_Glass}
}
// fiber
cylinder{<-9,6,0><9,6,0>.07 texture{col_silver} translate<0,0,0>}
object
{
SPC_FUSE1_CUP()
rotate<0,180,0> translate<10,0,0>
texture{col_silver}
}
// value
intersection{
difference {
cylinder{<-9,6,0><9,6,0>2.01}
cylinder{<-9,6,0><9,6,0>2}
}
text {ttf besch_font value 2, 0 scale 2 rotate<90,0,0> translate<-2,10,-.6> }
pigment {White}
}
#end
}
#end
#macro SPC_FUSE1(value)
object{SPC_FUSE1_GRND(value)}
#end
/********************************************************************************************************************************************
//--------------------------------------------------------------------------------------------------
// FUSE HOLDER SHK20Q FOR FUSES 5 x 20 mm, SH contact, E1207 Buerklin 46G6061
// fbleikamp(replace with at)web.de
//--------------------------------------------------------------------------------------------------
********************************************************************************************************************************************/
#macro SPC_FUSE2_GRND(value)
#macro SPC_FUSE2_PART()
union{
object{TOOLS_RECT_BOGEN(0.25,167.5,0.3,4,3.0,2.8507) rotate<0,0,0>translate <0,0,0>}
object{TOOLS_RECT_BOGEN(0.25,125.428,0.3,4,0,0) rotate<180,0,-12.5> translate <-2.85631,0.712,0>}
object{TOOLS_RECT_BOGEN(2.5,84.144,0.3,4,0,0) rotate<0,0,42.072> translate <-4.785 ,-1.242, 0>}
object{TOOLS_RECT_BOGEN(0.25,125.428,0.3,4,0.7,0) rotate<180,180,0> translate <-6.6585,1.10,0>}
difference{
box {<3.125,-0.15,-0.6><7,0.15,0.6>}
box {<3.125,-0.16,-0.6><7,0.16,0.6> rotate <0,-10,0> translate <0.5,0,-2.0>}
box {<3.125,-0.16,-0.6><7,0.16,0.6> rotate <0,10,0> translate <0.5,0,2.0>}
} texture{col_silver} rotate<0,0,-90> translate <-2.50,3.4,0>
}
#end
#macro SPC_FUSE2_HOLDER()
union{
object {SPC_FUSE2_PART()}
object {SPC_FUSE2_PART() rotate <0,180,0>}
object{TOOLS_RECT_BOGEN(0.1,90,0.3,2,2.25,0) rotate<90,0,0>translate <-2.5,1.2,-2.25>}
object{TOOLS_RECT_BOGEN(0.1,90,0.3,2,2.25,0) rotate<-90,180,0>translate <2.5,1.2,-2.25>}
intersection {
merge {
cylinder {<-0.3,0,0><0.3,0,0>2.5 }
torus {2.5,.3 rotate<0,0,90>}
box {<-0.3,-2.5,0><0.3,2.5,-1>}
}
box {<-0.31,-1,3><0,1,-0.5>}
texture {col_silver} rotate <20,-90,0> translate <0,8,-2>}
rotate <0,90,0> texture{col_silver}
}
#end
#macro SPC_FUSE2_CUP()
union {
difference {
cylinder{<0.0,0,0><4.8,0,0>2.5 }
cylinder{<0.1,0,0><4.9,0,0>2.25 open}
}
cylinder{<-0.2,0,0><0,0,0>2.3 }
torus{2.3,.2 rotate<0,0,90>}
texture {col_silver}
translate<0,0,0>
}
#end
#macro SPC_FUSE_20X5(value)
union {
object
{
SPC_FUSE2_CUP()
rotate<0,0,0> translate<-9.8,0,0>
texture{col_silver}
}
// glass tube
difference {
cylinder{<-9,0,0><9,0,0>2.2}
cylinder{<-9,0,0><9,0,0>1.9}
texture {T_Glass3}
}
// fiber
cylinder{<-9,-1.3,-1.5><9,1.3,1.5>.07 texture{col_silver}}
object
{
SPC_FUSE2_CUP()
rotate<0,180,0> translate<9.8,0,0>
texture{col_silver}
}
// value
#if (strlen(value)>0)
intersection{
difference {
cylinder{<-9,0,0><9,0,0>2.21}
cylinder{<-9,0,0><9,0,0>2.2}
}
text {ttf besch_font value 2, 0 scale 2 rotate<90,0,0> translate<-4,4,-.6> }
pigment{White}
}
#end
}
#end
union{
object {SPC_FUSE2_HOLDER() rotate <0,180,0> translate <8,0,0> }
object {SPC_FUSE2_HOLDER() rotate <0,0,0> translate <-8,0,0> }
object {SPC_FUSE_20X5(value) translate <0,8,0> }
}
#end
#macro SPC_FUSE2(value)
object{SPC_FUSE2_GRND(value)}
#end
/********************************************************************************************************************************************
//Macros for TO220 heatsink type KL195 and KL195i SEIFERT
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.1 - 04/01/06
********************************************************************************************************************************************/
#macro SPC_HEATSINK_KL195_GRND(Lg,Iso)
#macro half_KL195 (Lg, Iso)
union{
difference {
union{
//body with sharp edges
prism {0 Lg 38 <0,0>,<0,1.1>,<8.4,1.1>,<11.63,12.29>,<12.78,11.95>,<11.11,4.55>,<12.88,4.2>,<15.725,12.28>,
<16.88,11.94>,<14.44,4.68>,<16.15,4.1>,
<19.97,11.28>,<21.05,10.76>,<17.35,4.1>,<18.00,3.42>,<20.415,4.194>,<20.69,3.237>,<13.75,0.6>,<13.75,0>,
<-13.75,0>,<-13.75,0.6>,<-20.69,3.237>,<-20.415,4.194>,<-18.00,3.42>,<-17.25,4.1>,<-21.05,10.76>,<-19.97,11.28>,
<-16.15,4.1>,<-14.44,4.68>,<-16.88,11.94>,<-15.725,12.28>,
<-12.88,4.2>,<-11.11,4.55>,<-12.78,11.95>,<-11.63,12.29>,<-8.4,1.1>,<-0,1.1>,<0,0>
}
//make external round edges
cylinder{<12.2,0,12.1><12.2,Lg,12.1> .6}
cylinder{<16.3,0,12.1><16.3,Lg,12.1> .6}
cylinder{<20.5,0,11><20.5,Lg,11> .6}
cylinder{<20.5,0,3.7><20.5,Lg,3.7> .5}
cylinder{<-12.2,0,12.1><-12.2,Lg,12.1> .6}
cylinder{<-16.3,0,12.1><-16.3,Lg,12.1> .6}
cylinder{<-20.5,0,11><-20.5,Lg,11> .6}
cylinder{<-20.5,0,3.7><-20.5,Lg,3.7> .5}
}
union{
cylinder{<-14,-0.01,0><-14,Lg+0.01,0> 0.65 }
//make internal round edges
cylinder{<12,-0.01,4.4><12,Lg+0.01,4.4> 0.9}
cylinder{<15.3,-0.01,4.4><15.3,Lg+0.01,4.4> 0.9}
cylinder{<17.8,-0.01,3.88><17.8,Lg+0.01,3.88> 0.5}
cylinder{<14,0,-0.01><14,Lg,0> 0.65}
cylinder{<-12,-0.01,4.4><-12,Lg+0.01,4.4> 0.9}
cylinder{<-15.3,-0.01,4.4><-15.3,Lg+0.01,4.4> 0.9}
cylinder{<-17.8,-0.01,3.88><-17.8,Lg+0.01,3.88> 0.5}
}
pigment{Gray30}
}
//insulation rings and pins
#if(Iso=1)
cylinder{<12.7,-3,0><12.7,0,0> 3 pigment{Gray80}} // ring
cylinder{<12.7,-6,0><12.7,0,0> 1.25 pigment{Silver}} // pin
#else
cylinder{<12.7,-4,0><12.7,0,0> 1.25 pigment{Silver}} // pin
#end
}
#end
union{
#local hole_height=18.3;
#local KL195_thickness=2.2;
#local TO220_thickness=1.27;
#local washer_thickness=0.8;
#if(Iso=0) // Screws is used only with no insolated version (should to use clips instead)
#if(global_show_screws=on)
object { TOOLS_SCREW(3,8,0,Silver) rotate -90*x translate <0,hole_height,-KL195_thickness/2> }
#end
#if(global_show_washers=on)
object { TOOLS_WASHER(3,1,Silver) rotate 90*x translate <0,hole_height,+KL195_thickness/2+TO220_thickness> }
#end
#if(global_show_nuts=on)
object { TOOLS_NUT(3,0,Silver) rotate 90*x translate <0,hole_height,+KL195_thickness/2+TO220_thickness+washer_thickness> }
#end
#end
difference{
union{
object{half_KL195(Lg, Iso)}
object{half_KL195(Lg, Iso) rotate 180*y }
}
//holes
union{
cylinder{<0,18.3,-5><0,18.3,+5> 1.6}
#if(Lg>25.4)
cylinder{<0,25.4,-5><0,25.4,+5> 1.6}
#end
}
pigment{Gray20}
}
translate <0,Iso*3,-1.1> // shift 3 if insulation ring exist, shift 1.1 to set zero on heatsink surface
}
#end
#macro SPC_HEATSINK_KL195_25()
object{SPC_HEATSINK_KL195_GRND(25.4,0)}
#end
#macro SPC_HEATSINK_KL195_38()
object{SPC_HEATSINK_KL195_GRND(38.4,0)}
#end
#macro SPC_HEATSINK_KL195_50()
object{SPC_HEATSINK_KL195_GRND(50.8,0)}
#end
#macro SPC_HEATSINK_KL195_63()
object{SPC_HEATSINK_KL195_GRND(63.5,0)}
#end
#macro SPC_HEATSINK_KL195_25I()
object{SPC_HEATSINK_KL195_GRND(25.4,1)}
#end
#macro SPC_HEATSINK_KL195_38I()
object{SPC_HEATSINK_KL195_GRND(38.4,1)}
#end
#macro SPC_HEATSINK_KL195_50I()
object{SPC_HEATSINK_KL195_GRND(50.8,1)}
#end
#macro SPC_HEATSINK_KL195_63I()
object{SPC_HEATSINK_KL195_GRND(63.5,1)}
#end
/********************************************************************************************************************************************
//Macros for TO220 heatsink RA 37/3 from Seem
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.1 - 01/01/06
********************************************************************************************************************************************/
#macro SPC_HEATSINK_RA37_GRND()
difference{
union{
object{SPC_HEATSINK_RAWA400_9P() translate -17*x }
object{SPC_HEATSINK_RAWA400_9P() translate +8*x }
}
box{<-8,-0.1,-5.5><+3,2.1,+5.5> pigment{Gray20}}
translate +17*x
}
#end
#macro SPC_HEATSINK_RA37_3()
object{SPC_HEATSINK_RA37_GRND()}
#end
/********************************************************************************************************************************************
//Macros for SK 104 heatsink for TO220, SOT32, TO3P
//Designed by Stefan Seegel <dahamm(replace with at)(replace with at)gmx.net>
//17/10/06
//
//h: height of heatsink
//typ: 0 = mounting clip, 1 = solder pins, 2 = solder pins and insulation washer, 3 = M3 threaded bolts, brass
//gap: leave out gap on bottom if heatsink
//d: make drills
********************************************************************************************************************************************/
#macro SPC_HEATSINK_SK104_GRND(h, typ, gap)
#macro SPC_HEATSINK_SK104_MOUNTINGCLIP_HALF()
union{
#local bw1 = 11;
#local bw2 = 95;
#local bw3 = 80;
#local bw4 = 160;
#local brm = 7;
#local br = 1;
#local d = 0.5;
#local rm = (2*br-d)/2;
#local rmm = (2*brm-d)/2;
#local s1 = 16.5;
#local s2 = 5.0;
#local s3 = 1.5;
#local s4 = 1.0;
#local hc = 6.4;
difference{
cylinder{<0,-hc/2,0><0,hc/2,0> brm}
cylinder{<0,-hc,0><0,hc,0> brm-d}
box{<0, -hc, -brm>,<-brm, hc, brm> rotate<0,0,0>}
box{<0, -hc, -brm>,<brm, hc, brm> rotate<0,bw1,0>}
}
#local dx=sin(bw1/180*pi)*rmm;
#local dy=cos(bw1/180*pi)*rmm;
box{<-d/2, -hc/2, 0>,<d/2, hc/2, -s1> rotate<0,-90+bw1,0> translate<dx,0,dy>}
#local dx=dx+s1*cos(bw1/180*pi);
#local dy=dy-s1*sin(bw1/180*pi);
union
{
difference{
cylinder{<0,-hc/2,0><0,hc/2,0> br}
cylinder{<0,-hc,0><0,hc,0> br-d}
box{<0, -hc, -br>,<-br, hc, br> rotate<0,bw1,0>}
#local bwx = bw1-bw2;
box{<0, -hc, -br>,<br, hc, br> rotate<0,bwx,0>}
}
box{<-d/2, -hc/2, 0>,<d/2, hc/2, s2> rotate<0,bwx+90,0> translate<-sin(bwx/180*pi)*rm,0,-cos(bwx/180*pi)*rm>}
#local dx=dx+sin(bw1/180*pi)*rm;
#local dy=dy+cos(bw1/180*pi)*rm;
translate<dx,0,dy>
}
#local dx = dx-rm*sin(bwx/180*pi) + s2*cos(bwx/180*pi);
#local dy = dy-rm*cos(bwx/180*pi) - s2*sin(bwx/180*pi);
//box{<-d/2, 0, 0>,<d/2, 6.5, s2> rotate<0,bw1-bw2+90,0> translate<dx,0,dy> texture{col_silver}}
union
{
difference{
cylinder{<0,-hc/2,0><0,hc/2,0> br}
cylinder{<0,-hc,0><0,hc,0> br-d}
box{<0, -hc, -br>,<-br, hc, br> rotate<0,bwx,0>}
#local bwx = bwx-bw3;
box{<0, -hc, -br>,<br, hc, br> rotate<0,bwx,0>}
}
box{<-d/2, -hc/2, 0>,<d/2, hc/2, s3> rotate<0,bwx+90,0> translate<-sin(bwx/180*pi)*rm,0,-cos(bwx/180*pi)*rm>}
#local dx = dx - rm*cos(bw1/180*pi);
#local dy = dy + rm*sin(bw1/180*pi);
translate<dx,0,dy>
}
#local dx = dx -rm*sin(bwx/180*pi) + s3*cos(bwx/180*pi);
#local dy = dy -rm*cos(bwx/180*pi) - s3*sin(bwx/180*pi);
union
{
difference{
cylinder{<0,-hc/2,0><0,hc/2,0> br}
cylinder{<0,-hc><0,hc,0> br-d}
box{<0, -hc, -br>,<-br, hc, br> rotate<0,bwx,0>}
#local bwx = bwx+bw4;
box{<0, -hc, -br>,<br, hc, br> rotate<0,bwx,0>}
}
box{<-d/2, -hc/2, 0>,<d/2, hc/2, s4> rotate<0,bwx+90,0> translate<sin(bwx/180*pi)*rm,0,cos(bwx/180*pi)*rm>}
#local dx = dx - rm*sin((bwx-bw4)/180*pi);
#local dy = dy - rm*cos((bwx-bw4)/180*pi);
translate<dx,0,dy>
}
texture{col_gold}
}
#end
#macro SPC_HEATSINK_SK104_QUARTER(h)
union
{
prism
{
0, h, 15,
<-7.5,0.75>,
<-8,5.7>,<-9.2,5.6>,
<-9.6,2.1>,
<-12.5,6>,<-13.3,5.2>,
<-12.3,3.4>,
<-16.8,6>,<-17.6,5.1>,
<-14.7,2.9>,
<-17.0,3.6>,<-17.6,2.7>,
<-12.7,0>,<0,0>,<0,0.75>
}
cylinder{<-8.6,0,5.65>,<-8.6,h,5.65> 0.6}
cylinder{<-12.9,0,5.6>,<-12.9,h,5.6> 0.56}
cylinder{<-17.2,0,5.55>,<-17.2,h,5.55> 0.6}
cylinder{<-17.3,0,3.15>,<-17.3,h,3.15> 0.54}
}
#end
union
{
difference
{
union
{
object{SPC_HEATSINK_SK104_QUARTER(h)}
object{SPC_HEATSINK_SK104_QUARTER(h) rotate<0,180,0>}
object{SPC_HEATSINK_SK104_QUARTER(h) rotate<180,0,0> translate<0,h,0>}
object{SPC_HEATSINK_SK104_QUARTER(h) rotate<180,180,0> translate<0,h,0>}
}
cylinder{<-12.7,-1,0>,<-12.7,h+1,0> 1.15}
cylinder{<12.7,0,0>,<12.7,h+1,0> 1.15}
#if (typ != 0)
cylinder{<0,13.5,-1>,<0,13.5,1> 1.6}
cylinder{<0,18.3,-1>,<0,18.3,1> 1.6}
cylinder{<0,25.4,-1>,<0,25.4,1> 1.6}
#end
#if (gap=on)
box{<-5.4,-1,-1>,<5.4,6.5,1>}
#end
pigment{Gray30}
}
#if (typ=3) //SK104 xx STSB (M3 threaded bolts, brass)
cylinder{<-12.7,0,0>,<-12.7,-1.5,0> 3.5 texture{col_gold}}
cylinder{<12.7,0,0>,<12.7,-1.5,0> 3.5 texture{col_gold}}
object{TOOLS_SCREW(3,13.5,-1,Brass) translate<-12.7,7,0> texture{col_gold}}
object{TOOLS_SCREW(3,13.5,-1,Brass) translate<12.7,7,0> texture{col_gold}}
object{TOOLS_WASHER(3,1,Silver) translate<12.7,-pcb_height-2.3> }
object{TOOLS_NUT(3,0,Silver) translate<12.7,-pcb_height-4.3,0> }
object{TOOLS_WASHER(3,1,Silver) translate<-12.7,-pcb_height-2.3,0> }
object{TOOLS_NUT(3,0,Silver) translate<-12.7,-pcb_height-4.3,0> }
translate<0,1.5,0>
#end
#if (typ=2) //SK104 xx STIS (solder pins and insulation washer)
//insulating washers
cylinder{<-12.7,0,0>,<-12.7,-3,0> 3 pigment{White}}
cylinder{<12.7,0,0>,<12.7,-3,0> 3 pigment{White}}
//solder pins
cylinder{<-12.7,7,0>,<-12.7,-6,0> 1.15 texture{col_gold}}
cylinder{<12.7,7,0>,<12.7,-6,0> 1.15 texture{col_gold}}
translate<0,3,0>
#end
#if (typ=1 | typ=0) //SK104 xx STS (solder pins)
//solder pins
cylinder{<-12.7,7,0>,<-12.7,-4.5,0> 1.15 texture{col_gold}}
cylinder{<12.7,7,0>,<12.7,-4.5,0> 1.15 texture{col_gold}}
#end
#if (typ=0) //Mounting clip
union
{
object{SPC_HEATSINK_SK104_MOUNTINGCLIP_HALF() rotate<0,180,0>}
object{SPC_HEATSINK_SK104_MOUNTINGCLIP_HALF() rotate<0,180,180>}
translate<0,9,12>
}
#end
}
#end
#macro SPC_HEATSINK_SK104_254_STS()
object{SPC_HEATSINK_SK104_GRND(25.4, 1, on)}
#end
#macro SPC_HEATSINK_SK104_381_STS()
object{SPC_HEATSINK_SK104_GRND(38.1, 1, on)}
#end
#macro SPC_HEATSINK_SK104_508_STS()
object{SPC_HEATSINK_SK104_GRND(50.8, 1, on)}
#end
#macro SPC_HEATSINK_SK104_635_STS()
object{SPC_HEATSINK_SK104_GRND(63.5, 1, on)}
#end
#macro SPC_HEATSINK_SK104_254_STIS()
object{SPC_HEATSINK_SK104_GRND(25.4, 2, on)}
#end
#macro SPC_HEATSINK_SK104_381_STIS()
object{SPC_HEATSINK_SK104_GRND(38.1, 2, on)}
#end
#macro SPC_HEATSINK_SK104_508_STIS()
object{SPC_HEATSINK_SK104_GRND(50.8, 2, on)}
#end
#macro SPC_HEATSINK_SK104_635_STIS()
object{SPC_HEATSINK_SK104_GRND(63.5, 2, on) }
#end
#macro SPC_HEATSINK_SK104_254_STSB()
object{SPC_HEATSINK_SK104_GRND(25.4, 3, on)}
#end
#macro SPC_HEATSINK_SK104_381_STSB()
object{SPC_HEATSINK_SK104_GRND(38.1, 3, on)}
#end
#macro SPC_HEATSINK_SK104_508_STSB()
object{SPC_HEATSINK_SK104_GRND(50.8, 3, on)}
#end
#macro SPC_HEATSINK_SK104_635_STSB()
object{SPC_HEATSINK_SK104_GRND(63.5, 3, on)}
#end
#macro SPC_HEATSINK_SK104_254_MC()
object{SPC_HEATSINK_SK104_GRND(25.4, 0, on)}
#end
#macro SPC_HEATSINK_SK104_381_MC()
object{SPC_HEATSINK_SK104_GRND(38.1, 0, on)}
#end
#macro SPC_HEATSINK_SK104_508_MC()
object{SPC_HEATSINK_SK104_GRND(50.8, 0, on)}
#end
#macro SPC_HEATSINK_SK104_635_MC()
object{SPC_HEATSINK_SK104_GRND(63.5, 0, on)}
#end
/********************************************************************************************************************************************
//Kuehlkoerper SK96/84
********************************************************************************************************************************************/
#macro SPC_HEATSINK_SK96_GRND(l)
union{
#local black_al = texture {pigment{Black}
finish {specular .7 roughness .03 reflection .05 ambient .2 diffuse .5 brilliance 4} }
difference{
union{
prism{0,l,9 <0,0>,<8,0>,<8,12.5>,<9.5,12.5>,<9.5,14>,<54,14>,<54,27>,<0,27>,<0,0>} // Grundkoerper
cylinder{<54,0,15><54,l,15>1} // gerundete Ecken
cylinder{<54,0,19><54,l,19>1}
cylinder{<54,0,23><54,l,23>1}
cylinder{<54,0,27><54,l,27>1}
// Rundung der Kuehlrippen
cylinder{<1,0,27><1,l,27>1}
cylinder{<6,0,27><6,l,27>1}
cylinder{<11,0,27><11,l,27>1}
cylinder{<16,0,27><16,l,27>1}
cylinder{<21,0,27><21,l,27>1}
cylinder{<26,0,27><26,l,27>1}
cylinder{<31,0,27><31,l,27>1}
cylinder{<36,0,27><36,l,27>1}
cylinder{<41,0,27><41,l,27>1}
cylinder{<46,0,27><46,l,27>1} // Flaeche ueber den horiz. Kuehlrippen
box{<46,0,28><54,l,26.9>}
}
union{
cylinder{<9.5,0-0.01,12.5><9.5,l+0.01,12.5>1.5} // Innenecke unterhalb
box{<2,-0.1,25><5,l+0.1,28.1>} // Erste 2 senkrechte Kuehlrippen
cylinder{<3.5,-0.1,25><3.5,l+0.1,25>1.5}
box{<7,-0.1,25><10,l+0.1,28.1>}
cylinder{<8.5,-0.1,25><8.5,l+0.1,25>1.5}
box{<12,-0.1,19><15,l+0.1,28.1>} // Die restlichen senkrechten Kuehlrippen
cylinder{<13.5,-0.1,19><13.5,l+0.1,19>1.5}
box{<17,-0.1,19><20,l+0.1,28.1>}
cylinder{<18.5,-0.1,19><18.5,l+0.1,19>1.5}
box{<22,-0.1,19><25,l+0.1,28.1>}
cylinder{<23.5,-0.1,19><23.5,l+0.1,19>1.5}
box{<27,-0.1,19><30,l+0.1,28.1>}
cylinder{<28.5,-0.1,19><28.5,l+0.1,19>1.5}
box{<32,-0.1,19><35,l+0.1,28.1>}
cylinder{<33.5,-0.1,19><33.5,l+0.1,19>1.5}
box{<37,-0.1,19><40,l+0.1,28.1>}
cylinder{<38.5,-0.1,19><38.5,l+0.1,19>1.5}
box{<42,-0.1,19><45,l+0.1,28.1>}
cylinder{<43.5,-0.1,19><43.5,l+0.1,19>1.5}
box{<55.1,-0.1,16><50,l+0.1,18>} // Die horizontalen Kuehlrippen
cylinder{<50,-0.1,17><50,l+0.1,17>1}
box{<55.1,-0.1,20><50,l+0.1,22>}
cylinder{<50,-0.1,21><50,l+0.1,21>1}
box{<55.1,-0.1,24><50,l+0.1,26>}
cylinder{<50,-0.1,25><50,l+0.1,25>1}
box{<-0.1,-0.1,17><6.5,l+0.1,19>} // Die Montageloecher
box{<3,-0.1,-0.1><5,l+0.1,8>}
}
rotate<-90,-90,0>
translate<-l/2,0,0>
}
texture {black_al}}
#end
#macro SPC_HEATSINK_SK96_84()
object{SPC_HEATSINK_SK96_GRND(84)}
#end
/********************************************************************************************************************************************
//Macros for TO220 heatsink type HS-1.25GY-50 from Viewcom
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.1 30/12/05
********************************************************************************************************************************************/
#macro SPC_HEATSINK_VIEWCOM_HS_1_25GY_50_GRND()
union{
#local hole_height=19;
#local Heatsink_thickness=4.2;
#local TO220_thickness=1.27;
#local washer_thickness=0.8;
#if(global_show_screws=on)
object { TOOLS_SCREW(3,10,0,Silver) rotate -90*x translate <0,hole_height,-Heatsink_thickness> }
#end
#if(global_show_washers=on)
object { TOOLS_WASHER(3,1,Silver) rotate 90*x translate <0,hole_height,+TO220_thickness> }
#end
#if(global_show_nuts=on)
object { TOOLS_NUT(3,0,Silver) rotate 90*x translate <0,hole_height,+TO220_thickness+washer_thickness> }
#end
difference{
union{
// main shap with sharp edges
prism {0 32 56 <0,0>,<5.55,0>,<5.55,0.5>,<16.8,0.5>,<16.8,10>,<18.2,10>,<18.4,3.4>,<21.4,5.8>,<21.6,11.1>,<23.4,11.1>,<23.5,7.6>,
<25.3,9.2>,<25.4,12.2>,<26.9,12.2>,<27.1,10.5>,<29,12>,<30.1,11.2>,<27.7,8.1>,<29.3,8.1>,<29.3,6.6>,<26.1,6.4>,<23.5,3.1>,
<28.9,2.5>,<28.9,0.8>,<21.1,0.4>,<19.3,-1.6>,<28.9,-2.5>,<28.9,-4.2>,
<-28.9,-4.2>,<-28.9,-2.5>,<-19.3,-1.6> ,<-21.1,0.4>,<-28.9,0.8>,<-28.9,2.5>,<-23.5,3.1>,<-26.1,6.4>,<-29.3,6.6>,<-29.3,8.1>,<-27.7,8.1>,
<-30.1,11.2>,<-29,12>,<-27.1,10.5>,<-26.9,12.2>,<-25.4,12.2>,<-25.3,9.2>,<-23.5,7.6>,<-23.4,11.1>,<-21.6,11.1>,<-21.4,5.8>,<-18.4,3.4>,
<-18.2,10>,<-16.8,10>,<-16.8,0.5>,<-5.55,0.5>,<-5.55,0>,<0,0>
}
// round edges
cylinder{<28.9,0,-3.4><28.9,32,-3.4> .85}
cylinder{<28.9,0,1.6><28.9,32,1.6> .85}
cylinder{<29.2,0,7.4><29.2,32,7.4> .75}
cylinder{<29.5,0,11.5><29.5,32,11.5> .7}
cylinder{<26.2,0,12.2><26.2,32,12.2> .75}
cylinder{<22.5,0,11.1><22.5,32,11.1> .85}
cylinder{<17.7,0,10.8><17.7,32,10.8> 1.7}
cylinder{<-28.9,0,-3.4><-28.9,32,-3.4> .85}
cylinder{<-28.9,0,1.6><-28.9,32,1.6> .85}
cylinder{<-29.2,0,7.4><-29.2,32,7.4> .75}
cylinder{<-29.5,0,11.5><-29.5,32,11.5> .7}
cylinder{<-26.2,0,12.2><-26.2,32,12.2> .75}
cylinder{<-22.5,0,11.1><-22.5,32,11.1> .85}
cylinder{<-17.7,0,10.8><-17.7,32,10.8> 1.7}
pigment{Gray20}
}
union{
// to make half cylinder
box{<15.5,-0.1,8.4><16.8,32.1,12.8> }
box{<-15.5,-0.1,8.4><-16.8,32.1,12.8> }
//round groove
cylinder{<17.2,-0.1,10.6><17.2,32.1,10.6> .75}
cylinder{<-17.2,-0.1,10.6><-17.2,32.1,10.6> .75}
// hole
cylinder{<0,19,-5><0,19,+5> 1.8}
pigment{Gray20}
}
}
}
#end
#macro SPC_HEATSINK_VIEWCOM_HS_1_25GY_50()
object{SPC_HEATSINK_VIEWCOM_HS_1_25GY_50_GRND()}
#end
/********************************************************************************************************************************************
//Macros for MURATA NFE61P EMI FILTERS
//Designed by Philippe Boucheny <philippe.boucheny(at)free.fr>
//Rev. 1.0 13/01/06
********************************************************************************************************************************************/
#macro SPC_MURATA_CSTCC_G_A_GRND(value)
union{
difference{
union{
superellipsoid { <0.09, 0.09> scale <3.6,0.25,1.5> translate <0,0.25,0> }
intersection{
superellipsoid { <0.09, 0.09> scale <3.6,0.25,1.5> translate <0,0.25,0> }
union{
box{<-4,-0.1,-1.6><-3.1,1,+1.6>}
box{<-1.9,-0.1,-1.6><-0.7,1,+1.6>}
box{<+0.7,-0.1,-1.6><+1.9,1,+1.6>}
box{<+4,-0.1,-1.6><+3.1,1,+1.6>}
}
pigment{color red 0.85 green 0.85 blue 0.71}
}
}
union{
cylinder{<-2.5,0,-1.5><-2.5,0.6,-1.5> 0.23 }
cylinder{<+2.5,0,-1.5><+2.5,0.6,-1.5> 0.23 }
cylinder{<0,0,-1.5><0,0.6,-1.5> 0.23 }
cylinder{<-2.5,0,+1.5><-2.5,0.6,+1.5> 0.23 }
cylinder{<+2.5,0,+1.5><+2.5,0.6,+1.5> 0.23 }
cylinder{<0,0,+1.5><0,0.6,+1.5> 0.23 }
}
texture{col_silver}
}
difference{
superellipsoid { <0.2, 0.2> scale <3.3,1.55,1.05> translate <0,0,0> }
union{
box{<-3.4,0,-1.6><+3.4,-2,+1.6> texture{col_silver}}
text {ttf global_fontfile_arial value 0.08, 0 scale 1 rotate<90,0,0> translate<-2,1.6,-0.45>} // Ref Marking
}
texture{col_silver}
}
}
#end
#macro SPC_MURATA_CSTCC_G_A(value)
object{SPC_MURATA_CSTCC_G_A_GRND(value)}
#end
/********************************************************************************************************************************************
//Macros for MURATA NFE61P EMI FILTERS
//Designed by Philippe Boucheny <philippe.boucheny(at)free.fr>
//Rev. 1.0 13/01/06
********************************************************************************************************************************************/
#macro SPC_MURATA_NFE61P_GRND()
union{
difference{
superellipsoid { <0.09, 0.09> scale <3.4,0.8,0.8> translate <0,0.8,0> texture{col_silver} }
cylinder{<-2.7,0.8,0><+2.7,0.8,0> 1.2 texture{col_silver}}
}
superellipsoid { <0.09, 0.09> scale <1.3,0.8,0.8> translate <0,0.8,0> texture{col_silver} }
cylinder{<-2.7,0.8,0><+2.7,0.8,0> 0.7 pigment{Gray30}}
}
#end
#macro SPC_MURATA_NFE61P()
object{SPC_MURATA_NFE61P_GRND()}
#end
/********************************************************************************************************************************************
//A reed relay by Stefan Seegel (dahamm(replace with at)gmx.net)
********************************************************************************************************************************************/
#macro SPC_REED_RELAY_SIL_GRND(value,L,W,H)
#local pin_l = 3.5;
union{
union{
difference{
box{<0,2,0><0.6,-pin_l,0.25>}
box{<0,0,-1><1,1,1> rotate<0,0,-45> translate<0.3,-pin_l,0>}
box{<0,0,-1><-1,1,1> rotate<0,0,45> translate<0.3,-pin_l,0>}
translate<L/2-7.92,0,W/2-0.125>
}
difference{
box{<0,2,0><0.6,-pin_l,0.25>}
box{<0,0,-1><1,1,1> rotate<0,0,-45> translate<0.3,-pin_l,0>}
box{<0,0,-1><-1,1,1> rotate<0,0,45> translate<0.3,-pin_l,0>}
translate<L/2-2.84,0,W/2-0.125>
}
difference{
box{<0,2,0><0.6,-pin_l,0.25>}
box{<0,0,-1><1,1,1> rotate<0,0,-45> translate<0.3,-pin_l,0>}
box{<0,0,-1><-1,1,1> rotate<0,0,45> translate<0.3,-pin_l,0>}
translate<L/2+2.24,0,W/2-0.125>
}
difference{
box{<0,2,0><0.6,-pin_l,0.25>}
box{<0,0,-1><1,1,1> rotate<0,0,-45> translate<0.3,-pin_l,0>}
box{<0,0,-1><-1,1,1> rotate<0,0,45> translate<0.3,-pin_l,0>}
translate<L/2+7.32,0,W/2-0.125>
}
texture{col_silver}
}
difference{
box{<0,0,0><L,H,W>}
box{<0,-1,0><-2,H+2,W> rotate<0,11,0> translate<0,0,W/2+0.3>}
box{<0,-1,0><-2,H+2,-W> rotate<0,-11,0> translate<0,0,W/2-0.3>}
box{<0,-1,0><2,H+2,-W> rotate<0,11,0> translate<L,0,W/2-0.3>}
box{<0,-1,0><2,H+2,W> rotate<0,-11,0> translate<L,0,W/2+0.3>}
box{<-1,0,0><L+2,2,-W> rotate<-15,0,0> translate<0,H,W/2-0.3>}
box{<-1,0,0><L+2,2,W> rotate<15,0,0> translate<0,H,W/2+0.3>}
box{<0,0,-1><-3,3,1> translate<1.4,H-2.6,0>}
box{<0,0,0><L-3,-2,-W> rotate<11,0,0> translate<1.5,0.5,W/2-0.1>}
box{<0,0,0><L-3,-2,W> rotate<-11,0,0> translate<1.5,0.5,W/2+0.1>}
pigment{Gray20}
}
text{ttf besch_font "MEDER electronic" 0.5,0 pigment{White} scale<1.7,2,1.7> translate<2,5,0>}
text{ttf besch_font value 0.5,0 pigment{White} scale<1.7,2,1.7> translate<2,2,0>}
translate<-L/2, 0, -W/2>
rotate<0,0,0>
}
#end
#macro SPC_REED_RELAY_SIL(value)
object{SPC_REED_RELAY_SIL_GRND(value,19.8,5.08,7.8)}
#end
/********************************************************************************************************************************************
//Macros for Static Relay SK series from Celduc
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.0 30/12/05
********************************************************************************************************************************************/
#macro SPC_RELAY_CELDUC_SK_GRND(Value,L,W,H,L1,W1,Led,Type)
#local stp=1.27;
union{
difference{ // case
union{
superellipsoid { <0.08, 0.08> scale <L/2, H/2+1, W/2> translate <0, H/2-1, -W/2+(W-W1)> pigment{Gray20}}
#if (Led=1)
merge{cylinder{<0,0.75,0><0,5.48,0>1.5} sphere{<0,5.48,0>1.5} pigment{Red} translate <L/2-5,H-5.5,-W/2+(W-W1)>}
#end
}
union{
box{<-L/2-1,0,-W1-1><+L/2+1,-3,-W1+W+1> } // delete base
box{<-L/2+1.6,-0.1,-W1-1><+L/2-1.6,0.8,-W1+W+1> }
#if(Type=1)
box{<-L/2-1,0,-5><+L/2+1,2,+5> rotate -45*x translate<0,H-0.2,-W/2> }
box{<-L/2+4,1,-W/2-1><+L/2-4,H-1.7,-W/2-2> }
#end
pigment{Gray20}
}
translate (L/2-12.7-L1)*x
}
#if(Type=1)
box{<-L/2+4,1,-W/2-1><+L/2-4,H-1.7,-W/2-1.45> translate (L/2-12.7-L1)*x pigment {Black}}
box{<-L/2+3,2,+1.4><+L/2-3,H-2,+1.7> translate (L/2-12.7-L1)*x pigment {White}}
box{<-L/2+6,5,+1.4><+L/2-6,H-5,+1.71> translate (L/2-12.7-L1)*x pigment {Gray25}}
#end
// pins
cylinder{<-10*stp,2,0><-10*stp,-min(6.5,(pin_length+pcb_height)),0> .5 texture{col_silver} }
cylinder{<-6*stp,2,0><-6*stp,-min(6.5,(pin_length+pcb_height)),0> .5 texture{col_silver} }
cylinder{<+4*stp,2,0><+4*stp,-min(6.5,(pin_length+pcb_height)),0> .5 texture{col_silver} }
cylinder{<+12*stp,2,0><+12*stp,-min(6.5,(pin_length+pcb_height)),0> .5 texture{col_silver} }
#if(Type=1)
#local H=H-1;
#end
// marking
text {ttf global_fontfile_arial_bold "celduc" 0.1, 0 pigment{White} scale 5 rotate<0,0,0> translate<-L/2+8,H-6.1,-W1-0.01>}
text {ttf global_fontfile_arial "France" 0.1, 0 pigment{White} scale 4 rotate<0,0,0> translate<-L/2+25,H-6.1,-W1-0.01>}
text {ttf global_fontfile_arial "input" 0.1, 0 pigment{White} scale 3 rotate<0,0,0> translate<-12,H-16.5,-W1-0.01>}
text {ttf global_fontfile_arial "output" 0.1, 0 pigment{White} scale 3 rotate<0,0,0> translate<+5,H-16.5,-W1-0.01>}
text {ttf global_fontfile_arial_bold Value 0.1, 0 pigment{White} scale 4 rotate<0,0,0> translate<-10,H-11.5,-W1-0.01>}
#if(Type=0)
text {ttf global_fontfile_eagle3d "I" 0.1, 0 pigment{White} scale 3 rotate<0,0,0> translate<-18,H-10,-W1-0.01>} // canada UL marking
text {ttf global_fontfile_eagle3d "A" 0.1, 0 pigment{White} scale 3 rotate<0,0,0> translate<-17,H-14,-W1-0.01>} // UL marking
text {ttf global_fontfile_eagle3d "E" 0.1, 0 pigment{White} scale 5 rotate<0,0,0> translate<+12,H-12.5,-W1-0.01>} // CE marking
text {ttf global_fontfile_eagle3d "B" 0.1, 0 pigment{White} scale 5 rotate<0,0,0> translate<-3,H-18.5,-W1-0.01>} // DVE marking
#end
#local l1=3;
cylinder{<-12.7,l1,-W1-0.01><-12.7,l1,-W1> 0.5 pigment{White}}
cylinder{<-12.7+4*stp,l1,-W1-0.01><-12.7+4*stp,l1,-W1> 0.5 pigment{White}}
cylinder{<-12.7+13*stp,l1,-W1-0.01><-12.7+13*stp,l1,-W1> 0.5 pigment{White}}
cylinder{<-12.7+21*stp,l1,-W1-0.01><-12.7+21*stp,l1,-W1> 0.5 pigment{White}}
text {ttf global_fontfile_arial "4-" 0.1, 0 pigment{White} scale 2.8 rotate<0,0,0> translate<-12,l1-1,-W1-0.01>}
text {ttf global_fontfile_arial "3+" 0.1, 0 pigment{White} scale 2.8 rotate<0,0,0> translate<-12+4*stp,l1-1,-W1-0.01>}
text {ttf global_fontfile_arial "2" 0.1, 0 pigment{White} scale 2.8 rotate<0,0,0> translate<-12+13*stp,l1-1,-W1-0.01>}
text {ttf global_fontfile_arial "1" 0.1, 0 pigment{White} scale 2.8 rotate<0,0,0> translate<-12+21*stp,l1-1,-W1-0.01>}
}
#end
#macro SPC_RELAY_CELDUC_SK_ABD(value)
object{SPC_RELAY_CELDUC_SK_GRND(value,43.2,10.2,25.4,7.63,7.62,0,0)}
#end
#macro SPC_RELAY_CELDUC_SK_AL(value)
object{SPC_RELAY_CELDUC_SK_GRND(value,43.2,10.2,25.4,7.63,7.62,1,0)}
#end
#macro SPC_RELAY_CELDUC_SK_L(value)
object{SPC_RELAY_CELDUC_SK_GRND(value,43.6,6.0,24.5,7.83,4.60,0,1)}
#end
/********************************************************************************************************************************************
//Macros for G90 type 30A relay
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.1 du 05/01/06
//Form: 0=A 1=B 2=C
********************************************************************************************************************************************/
#macro SPC_RELAY_PB_G90_GRND(Value,Form,Com)
union{
#local H=20.4;
difference{
union{
superellipsoid { <0.08, 0.08> scale <16.1,H/2+2,10> translate <0.9, H/2-2, 0> }
superellipsoid { <0.08, 0.08> scale <8.8,H/2+2,10> translate <-6.4, H/2-2, -3.7> }
superellipsoid { <0.08, 0.08> scale <6.4,H/2+2,10> translate <-8.8, H/2-2, +3.7> }
}
union{
box{<50,-5,50> <-50,0.4,-50> }
cylinder{<0,H-0.6,0><0,H+0.1,0> 1.5}
}
pigment{Gray30}
}
cylinder{<0,H-0.6,0><0,H-0.3,0> 0.6 pigment{Gray30}}
cylinder{<+10.16,+1,+5.08><+10.16,-3.6,+5.08> .5 pigment{Silver} } //pin1
cylinder{<+10.16,+1,-5.08><+10.16,-3.6,-5.08> .5 pigment{Silver} } //pin2
cylinder{<-2.54,+1,-8.9><-2.54,-2.8,-8.9> .9 pigment{Silver} } //pin4
cone {<-2.54,-2.8,-8.9>, 0.9, <-2.54,-3.3,-8.9>, 0.6 pigment{Silver}}
#if(Form!=1)
cylinder{<-5.08,+1,+8.9><-5.08,-2.8,+8.9> 0.9 pigment{Silver} } //pin5
cone {<-5.08,-2.8,+8.9>, 0.9, <-5.08,-3.3,+8.9>, 0.5 pigment{Silver}}
#end
#if(Form!=0)
cylinder{<-12.7,+1,+8.9><-12.7,-2.8,+8.9> 0.9 pigment{Silver} } //pin3
cone {<-12.7,-2.8,+8.9>, 0.9, <-12.7,-3.3,+8.9>, 0.5 pigment{Silver}}
#end
#if (Com=2)
cylinder{<+12.7,+1,0><+12.7,-2.8,0> 0.9 pigment{Silver} } //pin6
cone {<+12.7,-2.8,0>, 0.9, <+12.7,-3.3,0>, 0.5 pigment{Silver}}
#end
text {ttf global_fontfile_eagle3d "." 0.05, 0 pigment{White} scale 3.5 rotate<90,-90,0> translate<-11,H+0.05,-5>}
text {ttf global_fontfile_arial Value 0.05, 0 pigment{White} scale 2.2 rotate<90,-90,0> translate<-8.5,H+0.05,-7>}
text {ttf global_fontfile_arial "COIL-12VDC" 0.05, 0 pigment{White} scale 2.2 rotate<90,-90,0> translate<-6,H+0.05,-7>}
text {ttf global_fontfile_eagle3d "A" 0.05, 0 pigment{White} scale 3 rotate<90,-90,0> translate<-2,H+0.05,-7>}
text {ttf global_fontfile_eagle3d "G" 0.05, 0 pigment{White} scale 3 rotate<90,-90,0> translate<-2,H+0.05,+0>}
text {ttf global_fontfile_arial "20A 250VAC 30VDC" 0.05, 0 pigment{White} scale <1.5,2,2> rotate<90,-90,0> translate<+5,H+0.05,-7>}
text {ttf global_fontfile_arial "2HP 250VAC" 0.05, 0 pigment{White} scale <1.5,2,2> rotate<90,-90,0> translate<+7,H+0.05,-7>}
text {ttf global_fontfile_arial "1HP 125VAC" 0.05, 0 pigment{White} scale <1.5,2,2> rotate<90,-90,0> translate<+9,H+0.05,-7>}
}
#end
// Form A, 1 common terminal
#macro SPC_RELAY_PB_G90_1A_1(value)
object{SPC_RELAY_PB_G90_GRND(value,0,1)}
#end
// Form B, 1 common terminal
#macro SPC_RELAY_PB_G90_1B_1(value)
object{SPC_RELAY_PB_G90_GRND(value,1,1)}
#end
// Form C, 1 common terminal
#macro SPC_RELAY_PB_G90_1C_1(value)
object{SPC_RELAY_PB_G90_GRND(value,2,1)}
#end
// Form A, 2 common terminals
#macro SPC_RELAY_PB_G90_1A_2(value)
object{SPC_RELAY_PB_G90_GRND(value,0,2)}
#end
// Form B, 2 common terminals
#macro SPC_RELAY_PB_G90_1B_2(value)
object{SPC_RELAY_PB_G90_GRND(value,1,2)}
#end
// Form C, 2 common terminals
#macro SPC_RELAY_PB_G90_1C_2(value)
object{SPC_RELAY_PB_G90_GRND(value,2,2)}
#end
/********************************************************************************************************************************************
//Macros for DC-DC CONVERTERs DIP series from TRACO
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.0 - 24/12/05
********************************************************************************************************************************************/
#macro SPC_VCONV_DIP_GRND(value,M,Lb,Tp,L,W,H,p1,p2,p3,p9,p10,p11,p12,p13,p14,p15,p16,p22,p23,p24,offsetX,pw,hpin)
union{
#if(M=0) // Plastic
#local inner = 1;
box{<-L/2,+0,-W/2><+L/2,H,+W/2> pigment{Gray20}}
#else // Metalic
#if(L>33)
#local inner = 2.5;
#else
#local inner = 1.5;
#end
difference{
superellipsoid { <0.1, 0.1> scale <L/2, H/2+2,W/2> translate <0, H/2-2, 0> texture{Silver1}}
box{<-L/2,0,-W/2><+L/2,-H,+W/2>}
}
#end
#if(Lb=0) // WHITE
#local col=White;
box{<-L/2+inner,H,-W/2+inner><+L/2-inner,H+0.01,+W/2-inner> pigment{SpicyPink}} // Label
text {ttf global_fontfile_handelgo "TRACO" 0.05, 0 pigment{col} scale 5 rotate<90,0,0> translate<-9,H+0.05,3.5>} // Marking
text {ttf global_fontfile_handelgo "POWER" 0.05, 0 pigment{col} scale 5 rotate<90,0,0> translate<-10,H+0.05,-1>} // Marking
text {ttf global_fontfile_handelgo "DC/DC CONVERTER" 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-13,H+0.05,-4.2>} // Marking
text {ttf global_fontfile_handelgo pw 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<+8,H+0.05,-4.2>} // Marking
text {ttf global_fontfile_arial_bold value 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-5.5+offsetX,H+0.05,-7>} // Marking
text {ttf global_fontfile_handelgo "TM" 0.05, 0 pigment{col} scale 1.5 rotate<90,0,0> translate<+8.5,H+0.05,6.8>} // Marking
#end
#if(Lb=1) // BLACK
#local col=Black;
box{<-L/2+inner,H,-W/2+inner><+L/2-inner,H+0.01,+W/2-inner> pigment{SpicyPink}} // Label
text {ttf global_fontfile_handelgo "TRACO" 0.05, 0 pigment{col} scale 5 rotate<90,0,0> translate<-9+offsetX,H+0.05,3>} // Marking
text {ttf global_fontfile_handelgo "DC/DC CONVERTER" 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-13+offsetX,H+0.05,-1.5>} // Marking
text {ttf global_fontfile_handelgo pw 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<+8+offsetX,H+0.05,-1.5>} // Marking
text {ttf global_fontfile_arial_bold value 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-7+offsetX,H+0.05,-6>} // Marking
text {ttf global_fontfile_handelgo "R" 0.05, 0 pigment{col} scale 1.5 rotate<90,0,0> translate<+9,H+0.05,6.78>} // Marking
disc {<9.45, H+0.05, 7.28> y,1.0,0.8 pigment{col}}
#end
#if(Lb=2) // DIL16
#local col=White;
text {ttf global_fontfile_handelgo "TRACO" 0.05, 0 pigment{col} scale 4 rotate<90,0,0> translate<-8+offsetX,H+0.05,3>} // Marking
text {ttf global_fontfile_handelgo "POWER" 0.05, 0 pigment{col} scale 4 rotate<90,0,0> translate<-8.5+offsetX,H+0.05,-0.5>} // Marking
text {ttf global_fontfile_arial_bold value 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-6+offsetX,H+0.05,-3.5>} // Marking
text {ttf global_fontfile_arial_bold "0341" 0.05, 0 pigment{col} scale 2 rotate<90,0,0> translate<-3+offsetX,H+0.05,-6>} // Marking
text {ttf global_fontfile_handelgo "R" 0.05, 0 pigment{col} scale 1 rotate<90,0,0> translate<+9.1-2.5,H+0.05,6.9-2>} // Marking
disc {<9.45-2.5, H+0.05, 7.28-2> y,0.7,0.6.5 pigment{col}}
#end
#if(Lb=3) // 5W
#local col=Black;
box{<-L/2+inner,H,-W/2+inner><+L/2-inner,H+0.01,+W/2-inner> pigment{SpicyPink}} // Label
text {ttf global_fontfile_handelgo "TRACO" 0.05, 0 pigment{col} scale 9 rotate<90,0,0> translate<-16,H+0.05,13>} // Marking
text {ttf global_fontfile_handelgo "POWER PRODUCTS" 0.05, 0 pigment{col} scale 3 rotate<90,0,0> translate<-15,H+0.05,8>} // Marking
text {ttf global_fontfile_handelgo "DC/DC CONVERTER" 0.05, 0 pigment{col} scale 3.2 rotate<90,0,0> translate<-20,H+0.05,-3>} // Marking
text {ttf global_fontfile_handelgo pw 0.05, 0 pigment{col} scale 3.2 rotate<90,0,0> translate<+14,H+0.05,-3>} // Marking
text {ttf global_fontfile_arial_bold value 0.05, 0 pigment{col} scale 3 rotate<90,0,0> translate<-8+offsetX,H+0.05,-15>} // Marking
text {ttf global_fontfile_handelgo "R" 0.05, 0 pigment{col} scale 2.5 rotate<90,0,0> translate<+16,H+0.05,19>} // Marking
disc {<16.7, H+0.05, 19.8> y,1.5,1.2 pigment{col}}
#end
#if(Tp=0) // DIP24 pins
#if(p1=1)
cylinder{<-13.97,0,-7.62><-13.97,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
cylinder{<-13.50,H,-7.62><-13.50,H+0.05,-7.62> 0.5 pigment{col}}
text {ttf global_fontfile_arial_bold "1" 0.05, 0 pigment{col} scale 1.5 rotate<90,0,0> translate<-13.8,H+0.05,-6.8>} // Marking
#end
#if(p2=1)
cylinder{<-11.43,0,-7.62><-11.43,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#if(p1=0)
cylinder{<-11.43,H,-7.62><-11.43,H+0.05,-7.62> 0.5 pigment{col}}
text {ttf global_fontfile_arial_bold "2" 0.05, 0 pigment{col} scale 1.5 rotate<90,0,0> translate<-11.8,H+0.05,-6.8>} // Marking
#end
#end
#if(p3=1)
cylinder{<-8.89,0,-7.62><-8.89,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#end
#if(p9=1)
cylinder{<+6.35,0,-7.62><+6.35,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#end
#if(p10=1)
cylinder{<+8.89,0,-7.62><+8.89,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#end
#if(p11=1)
cylinder{<+11.43,0,-7.62><+11.43,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#end
#if(p12=1)
cylinder{<+13.97,0,-7.62><+13.97,-min(hpin,(pin_length+pcb_height)),-7.62> 0.3 pigment{Silver}}
#end
#if(p24=1)
cylinder{<-13.97,0,+7.62><-13.97,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p23=1)
cylinder{<-11.43,0,+7.62><-11.43,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p22=1)
cylinder{<-8.89,0,+7.62><-8.89,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p16=1)
cylinder{<+6.35,0,+7.62><+6.35,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p15=1)
cylinder{<+8.89,0,+7.62><+8.89,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p14=1)
cylinder{<+11.43,0,+7.62><+11.43,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#if(p13=1)
cylinder{<+13.97,0,+7.62><+13.97,-min(hpin,(pin_length+pcb_height)),+7.62> 0.3 pigment{Silver}}
#end
#end
#if(Tp=1) // DIL16 pins
cylinder{<-8.89,H,-5.08><-8.89,H+0.05,-5.08> 0.75 pigment{col}}
cylinder{<-8.89,0,-5.08><-8.89,-min(hpin,(pin_length+pcb_height)),-5.08> 0.25 pigment{Silver}} //pin1
cylinder{<+6.35,0,-5.08><+6.35,-min(hpin,(pin_length+pcb_height)),-5.08> 0.25 pigment{Silver}} //pin7
cylinder{<+8.89,0,-5.08><+8.89,-min(hpin,(pin_length+pcb_height)),-5.08> 0.25 pigment{Silver}} //pin8
cylinder{<+8.89,0,+5.08><+8.89,-min(hpin,(pin_length+pcb_height)),+5.08> 0.25 pigment{Silver}} //pin9
cylinder{<+6.35,0,+5.08><+6.35,-min(hpin,(pin_length+pcb_height)),+5.08> 0.25 pigment{Silver}} //pin10
cylinder{<-8.89,0,+5.08><-8.89,-min(hpin,(pin_length+pcb_height)),+5.08> 0.25 pigment{Silver}} //pin16
#end
#if(Tp=2) // TVL pins
cylinder{<-10.16,0,-2.54><-10.16,-min(hpin,(pin_length+pcb_height)),-2.54> 0.25 pigment{Silver}} //pin2
cylinder{<-10.16,0,+2.54><-10.16,-min(hpin,(pin_length+pcb_height)),+2.54> 0.25 pigment{Silver}} //pin1
cylinder{<+10.16,0,-10.16><+10.16,-min(hpin,(pin_length+pcb_height)),-10.16> 0.25 pigment{Silver}} //pin3
cylinder{<+10.16,0,0><+10.16,-min(hpin,(pin_length+pcb_height)),0> 0.25 pigment{Silver}} //pin4
cylinder{<+10.16,0,+10.16><+10.16,-min(hpin,(pin_length+pcb_height)),+10.16> 0.25 pigment{Silver}} //pin5
#end
}
#end
#macro SPC_VCONV_DIP_TYL(value)
object{SPC_VCONV_DIP_GRND(value,1,1,0,32.6,20.4,10.3,1,0,0,0,1,0,1,1,0,1,0,0,0,1,0,"1.5W",5)}
#end
#macro SPC_VCONV_DIP_TEM2(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,"2W",3.8)}
#end
#macro SPC_VCONV_DIP_TEL2(value)
object{SPC_VCONV_DIP_GRND(value,0,2,1,23.8,13.7,10,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"2W",4)}
#end
#macro SPC_VCONV_DIP_THI_S(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,1,0,0,0,0,1,1,0,0,0,0,1,1,0,"2W",4)}
#end
#macro SPC_VCONV_DIP_THI_D(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,1,0,0,1,1,0,1,0,0,0,0,1,1,0,"2W",4)}
#end
#macro SPC_VCONV_DIP_THP3_S(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,0,0,0,0,0,1,1,0,0,0,0,1,1,0,"2W",4)}
#end
#macro SPC_VCONV_DIP_THP3_D(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,0,0,0,0,1,0,1,0,1,0,0,1,1,0,"2W",4)}
#end
#macro SPC_VCONV_DIP_TEM3(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,"3W",3.8)}
#end
#macro SPC_VCONV_DIP_TEL3(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10.2,1,1,1,0,1,1,1,1,1,1,0,1,1,1,0,"3W",4.5)}
#end
#macro SPC_VCONV_DIP_TEL3NP_S(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"3W",4.5)}
#end
#macro SPC_VCONV_DIP_TEL3NP_D(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"3W",4.5)}
#end
#macro SPC_VCONV_DIP_TEN3_S(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"3W",5)}
#end
#macro SPC_VCONV_DIP_TEN3_D(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"3W",5)}
#end
#macro SPC_VCONV_DIP_TEN4_S(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"4W",5)}
#end
#macro SPC_VCONV_DIP_TEN4_D(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"4W",5)}
#end
#macro SPC_VCONV_DIP_TVL(value)
object{SPC_VCONV_DIP_GRND(value,1,3,2,51.3,51.3,8,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"5W",6)}
#end
#macro SPC_VCONV_DIP_TEL5_S(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20.3,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"5W",5)}
#end
#macro SPC_VCONV_DIP_TEL5_D(value)
object{SPC_VCONV_DIP_GRND(value,0,0,0,32,20.3,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"5W",5)}
#end
#macro SPC_VCONV_DIP_TEN5_S(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"5W",5)}
#end
#macro SPC_VCONV_DIP_TEN5_D(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"5W",5)}
#end
#macro SPC_VCONV_DIP_TEN5WI_S(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"5W",3.8)}
#end
#macro SPC_VCONV_DIP_TEN5WI_D(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"5W",3.8)}
#end
#macro SPC_VCONV_DIP_TEN6_S(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,0,0,1,0,0,1,0,1,1,1,0,-1,"5W",3.8)}
#end
#macro SPC_VCONV_DIP_TEN6_D(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,0,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"5W",3.8)}
#end
#macro SPC_VCONV_DIP_TEN8(value)
object{SPC_VCONV_DIP_GRND(value,1,0,0,32,20,10.2,1,1,1,1,0,1,0,0,1,0,1,1,1,0,-1,"8W",3.8)}
#end
/********************************************************************************************************************************************
//Macros for DC-DC CONVERTERs SIP series from TRACO
//Designed by Philippe Boucheny <philippe.boucheny(replace with at)free.fr>
//Rev. 1.0 - 21/12/05
********************************************************************************************************************************************/
#macro SPC_VCONV_SIP_GRND(value,s,Lg,lg1,lg,h,p1,p2,p3,p4,p5,p6,p7,p8,os,pl)
union{
#local s = -((5*1.27)+s);
#local lg1 = lg1+0.125;
difference{
box{<s,0,lg1-lg><s+Lg,+h,lg1>}
union{
box{<s+0.5,-0.1,-lg><s+Lg-0.5,+0.5,lg1+0.5>}
cylinder{<-6.35,2.5,lg1-lg-0.2><-6.35,2.5,lg1-lg+0.15> 0.6}
}
pigment{Gray20}
}
#if(p1=1)
box{<-5*1.27-0.25,0.6,-0.125><-5*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p2=1)
box{<-3*1.27-0.25,0.6,-0.125><-3*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p3=1)
box{<-1*1.27-0.25,0.6,-0.125><-1*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p4=1)
box{<+1*1.27-0.25,0.6,-0.125><+1*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p5=1)
box{<+3*1.27-0.25,0.6,-0.125><+3*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p6=1)
box{<+5*1.27-0.25,0.6,-0.125><+5*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p7=1)
box{<+7*1.27-0.25,0.6,-0.125><+7*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
#if(p8=1)
box{<+9*1.27-0.25,0.6,-0.125><+9*1.27+0.25,-min(pl,(pin_length+pcb_height)),+0.125> texture{col_silver}}
#end
text {ttf besch_font value 0.1, 0 pigment{White} scale 1.75 rotate<90,0,0> translate<-3.0+os,h+0.01,lg1-(lg/2)-0.5>} // Marking on top surface
text {ttf besch_font "TRACO" 0.1, 0 pigment{White} scale 3 rotate<0,0,0> translate<-3.5+os,6.81,lg1-lg-0.01>} // Markings front surface
text {ttf besch_font value 0.1, 0 pigment{White} scale 2 rotate<0,0,0> translate<-3.8+os,4.8,lg1-lg-0.01>} // Markings front surface
text {ttf besch_font "9815" 0.1, 0 pigment{White} scale 1.75 rotate<0,0,0> translate<-1.3+os,2.8,lg1-lg-0.01>} // Markings front surface
cylinder{<-6.35,2.5,lg1-lg+0.15><-6.35,2.5,lg1-lg+0.1> 0.6 pigment{White}}
rotate<0,90,0>
}
#end
//TMA single/dual voltage, less or equal to 24V input voltage
#macro SPC_VCONV_SIP_TMA_S(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,6,10.2,1,1,0,1,0,1,0,0,0,3.2)}
#end
#macro SPC_VCONV_SIP_TMA_D(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,6,10.2,1,1,0,1,0,1,0,0,0,3.2)}
#end
#macro SPC_VCONV_SIP_TMA_S_24V(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7,10.2,1,1,0,1,0,1,0,0,0,3.2)}
#end
#macro SPC_VCONV_SIP_TMA_D_24V(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7,10.2,1,1,0,1,0,1,0,0,0,3.2)}
#end
//TME less or equal to 24V input voltage
#macro SPC_VCONV_SIP_TME(value)
object{SPC_VCONV_SIP_GRND(value,1.9,+11.5,4.2,6,10.2,1,1,1,1,0,0,0,0,-3.5,3.2)}
#end
#macro SPC_VCONV_SIP_TME_24V(value)
object{SPC_VCONV_SIP_GRND(value,1.9,+11.5,5.2,7,10.2,1,1,1,1,0,0,0,0,-3.5,3.2)}
#end
//TMV single/dual voltage, less or equal to 24V input voltage
#macro SPC_VCONV_SIP_TMV_S(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,6,10.2,1,1,0,0,1,0,1,0,0.5,3.2)}
#end
#macro SPC_VCONV_SIP_TMV_D(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,6,10.2,1,1,0,0,1,1,1,0,0.5,3.2)}
#end
#macro SPC_VCONV_SIP_TMV_S_24V(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7,10.2,1,1,0,0,1,0,1,0,0.5,3.2)}
#end
#macro SPC_VCONV_SIP_TMV_D_24V(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7,10.2,1,1,0,0,1,1,1,0,0.5,3.2)}
#end
// TMVEN single/dual voltage
#macro SPC_VCONV_SIP_TMVEN_S(value)
object{SPC_VCONV_SIP_GRND(value,3.5,+22,1.75,7.5,12.5,1,1,0,0,1,0,1,0,0.5,4)}
#end
#macro SPC_VCONV_SIP_TMVEN_D(value)
object{SPC_VCONV_SIP_GRND(value,3.5,+22,1.75,7.5,12.5,1,1,0,0,1,1,1,0,0.5,4)}
#end
// TMH single/dual voltage
#macro SPC_VCONV_SIP_TMH_S(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7.5,10.2,1,1,0,1,0,1,0,0,0,3.2)}
#end
#macro SPC_VCONV_SIP_TMH_D(value)
object{SPC_VCONV_SIP_GRND(value,2.3,+19.5,1.25,7.5,10.2,1,1,0,1,1,1,0,0,0,3.2)}
#end
// TMR single/dual voltage
#macro SPC_VCONV_SIP_TMR(value)
object{SPC_VCONV_SIP_GRND(value,2,+21.8,3.2,9.2,11.1,1,1,0,0,0,1,1,1,1.5,4)}
#end
/********************************************************************************************************************************************
//Quarz mit veraenderbarer Hoehe und 4,9mm Pitch
//basiert auf Modell von Andreas Fecht <info(replace with at)aftec.de>
********************************************************************************************************************************************/
#macro SPC_XTAL_5MM_GRND(value,height)
union{
cylinder{<-3.35,0,0><-3.35,0.7,0>2.25}
cylinder{<3.35,0,0><3.35,0.7,0>2.25}
box{<-3.35,0,-2.25><3.35,0.7,2.25>}
cylinder{<-3.35,0.7,0><-3.35,height,0>2}
cylinder{<3.35,0,0><3.35,height,0>2}
box{<-3.35,0,-2><3.35,height,2>}
torus{1.6,0.4 translate<-3.35,height,0>}
torus{1.6,0.4 translate<3.35,height,0>}
cylinder{<-3.35,0,0><3.35,0,0>0.4 translate<0,height,-1.6>}
cylinder{<-3.35,0,0><3.35,0,0>0.4 translate<0,height,1.6>}
cylinder{<-3.35,height,0><-3.35,height+0.4,0>1.6}
cylinder{<3.35,height,0><3.35,height+0.4,0>1.6}
box{<-3.35,height,-1.6><3.35,height+0.4,1.6>}
#if(pin_short=off)
cylinder{<-2.45,0,0><-2.45,-12,0>0.25}
cylinder{<2.45,0,0><2.45,-12,0>0.25}
#else
cylinder{<-2.45,0,0><-2.45,-1*(pin_length+pcb_height),0>0.25}
cylinder{<2.45,0,0><2.45,-1*(pin_length+pcb_height),0>0.25}
#end
#if(height>5)
text {ttf besch_font value 0.1, 0 pigment{White*0.5} scale 1.5 translate<-3,height/2,-2.01>}
#else
text {ttf besch_font value 0.1, 0 pigment{White*0.5} scale 2 rotate<90,0,0> translate<-4,height+0.401,-0.5>}
#end
texture{col_silver}}
#end
#macro SPC_XTAL_5MM(value,height)
object{SPC_XTAL_5MM_GRND(value,height)}
#end
/********************************************************************************************************************************************
//Quarz mit veraenderbarer Hoehe und 4,9mm Pitch SMD
//albi <azihlmann(replace with at)gmx.net>
********************************************************************************************************************************************/
#macro SPC_XTAL_5MM_SMD_GRND(value,height)
union{
union{
cylinder{<-3.35,0,0><-3.35,0.7,0>2.25}
cylinder{<3.35,0,0><3.35,0.7,0>2.25}
box{<-3.35,0,-2.25><3.35,0.7,2.25>}
cylinder{<-3.35,0.7,0><-3.35,height,0>2}
cylinder{<3.35,0,0><3.35,height,0>2}
box{<-3.35,0,-2><3.35,height,2>}
torus{1.6,0.4 translate<-3.35,height,0>}
torus{1.6,0.4 translate<3.35,height,0>}
cylinder{<-3.35,0,0><3.35,0,0>0.4 translate<0,height,-1.6>}
cylinder{<-3.35,0,0><3.35,0,0>0.4 translate<0,height,1.6>}
cylinder{<-3.35,height,0><-3.35,height+0.4,0>1.6}
cylinder{<3.35,height,0><3.35,height+0.4,0>1.6}
box{<-3.35,height,-1.6><3.35,height+0.4,1.6>}
#if(height>5)
text {ttf besch_font value 0.1, 0 pigment{White*0.5} scale 1.5 translate<-3,height/2,-2.01>}
#else
text {ttf besch_font value 0.1, 0 pigment{White*0.5} scale 2 rotate<90,0,0> translate<-4,height+0.401,-0.5>}
#end
texture{col_silver}
translate 0.7*y
}
box{<-5.5,0.01,-2.20><5.5,1,2.20> pigment{White*0.3}}
difference{
box{<-6.0,0,-0.35><6.0,0.3,0.35>}
box{<-2.25,-0.1,-0.4><2.25,0.4,0.4>}
texture{col_silver}
}
}
#end
#macro SPC_XTAL_5MM_SMD(value,height)
object{SPC_XTAL_5MM_SMD_GRND(value,height)}
#end
/********************************************************************************************************************************************
//Uhrenquarz mit 2,5mm Pitch
********************************************************************************************************************************************/
#macro SPC_XTAL_CLOCK_025MM_GRND(value)
#if(pin_short=off)
#local spc_pin_length = -5;
#else
#local spc_pin_length = -1*(pin_length+pcb_height);
#end
union{
superellipsoid{<1,0.12> rotate<90,0,0> scale<1,3,1> translate<0,5,0>}
sphere_sweep {
linear_spline 4
<-0.5,2,0>,0.18
<-0.5,1.5,0>,0.18
<-1.27,0.3,0>,0.18
<-1.27,-5,0>,0.18}
sphere_sweep {
linear_spline 4
<0.5,2,0>,0.18
<0.5,1.5,0>,0.18
<1.27,0.3,0>,0.18
<1.27,-5,0>,0.18}
intersection{
superellipsoid{<1,0.12> rotate<90,0,0> scale<1.001,3,1.001> translate<0,5,0> pigment{Black}}
union{
text {ttf besch_font value 0.5, 0 pigment{White*0.5} rotate<0,0,90> translate<0.5,2.8,-1.1>}
text {ttf besch_font value 0.5, 0 pigment{White*0.5} rotate<0,0,90> translate<0.5,2.8,-1.1> rotate<0,180,0>}}}
texture{col_silver}}
#end
#macro SPC_XTAL_CLOCK_025MM(value)
object{SPC_XTAL_CLOCK_025MM_GRND(value)}
#end
/********************************************************************************************************************************************
//Macros for SMD TCVCXO CFPT-37 CFPT125 and CFPT126 from C-MAC
//Designed by Philippe Boucheny <philippe.boucheny(at)free.fr>
//Rev. 1.0 25/03/06
********************************************************************************************************************************************/
#macro SPC_XTAL_OSZ_CFPT_GRND(Type)
#macro SPC_XTAL_OSZ_CFPT_GRND_CAPSMDCHIP(color_sub,L,W,T,K)
union{
superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub} scale<L/2,W/2,T/2> } //Grundkoerper braun
superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <(L-K)/2,0,0> texture{col_silver}} //rechter Anschluss
superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2> translate <-(L-K)/2,0,0> texture{col_silver}} //linker Anschluss
rotate<90,0,0>
translate<0,T/2,0>
}
#end
union{
difference{
box{<-3.5,0,-2.5><+3.5,0.6,+2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+3.5,0,0> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-3.5,0,0> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<0,0,+2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<0,0,-2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+3.5,0,+2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-3.5,0,+2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+3.5,0,-2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-3.5,0,-2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-2.54,0,+2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+2.54,0,+2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-2.54,0,-2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+2.54,0,-2.5> texture{T_Brass_3A}}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-1.17,0,+2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+1.17,0,+2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-1.17,0,-2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+1.17,0,-2.5>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+3.5,0,-1.12>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-3.5,0,-1.12>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<+3.5,0,+1.12>}
cylinder{<0,-0.2,0><0,0.8,0> 0.16 translate<-3.5,0,+1.12>}
pigment{rgb <0.44, 0.37, 0.40>}
}
union{
superellipsoid { <0.15, 0.15> scale <2.7, 0.455,1.7> translate <0, 0.6+0.455, 0> texture{T_Brass_5A} }
superellipsoid { <0.15, 0.15> scale <2.55, 0.55,1.55> translate <0, 0.6+0.55, 0> texture{T_Brass_5A} }
superellipsoid { <0.15, 0.15> scale <2.5, 0.61,1.5> translate <0, 0.6+0.61, 0> texture{T_Brass_5A} }
superellipsoid { <0.05, 0.05> scale <0.05, 0.2,0.3> translate <-2.75, 0.2+0.55, -1.1> texture{col_silver} }
superellipsoid { <0.05, 0.05> scale <0.05, 0.2,0.3> translate <-2.75, 0.2+0.55, +1.1> texture{col_silver} }
superellipsoid { <0.05, 0.05> scale <0.05, 0.2,0.3> translate <+2.75, 0.2+0.55, -1.1> texture{col_silver} }
superellipsoid { <0.05, 0.05> scale <0.05, 0.2,0.3> translate <+2.75, 0.2+0.55, +1.1> texture{col_silver} }
box{<-2.3,1.8,-1><+2.3,1.83,+1> pigment{Gray50}}
box{<-2,1.8,-1.3><+2,1.83,+1.3> pigment{Gray50}}
cylinder{<0,1.8,0><0,1.83,0> 0.3 translate<-2,0,+1> pigment{Gray50}}
cylinder{<0,1.8,0><0,1.83,0> 0.3 translate<-2,0,-1> pigment{Gray50}}
cylinder{<0,1.8,0><0,1.83,0> 0.3 translate<+2,0,+1> pigment{Gray50}}
cylinder{<0,1.8,0><0,1.83,0> 0.3 translate<+2,0,-1> pigment{Gray50}}
text {ttf global_fontfile_arial_bold "CMAC" 0.05, 0 pigment{Gray30} scale <1,0,.8> rotate<90,0,0> translate<-2,1.84,+0.4>} // Marking
text {ttf global_fontfile_arial_bold Type 0.05, 0 pigment{Gray20} scale <0.8,1,1> rotate<90,0,0> translate<-1.5,1.84,-0.9>} // Marking
translate 0.3*z
}
object{SPC_XTAL_OSZ_CFPT_GRND_CAPSMDCHIP(DarkWood,1.0,0.5,0.6,0.2)translate<0,0.6,-1.9>}
object{SPC_XTAL_OSZ_CFPT_GRND_CAPSMDCHIP(DarkWood,1.0,0.5,0.6,0.2)translate<-2.2,0.6,-1.9>}
object{SPC_XTAL_OSZ_CFPT_GRND_CAPSMDCHIP(Gray30,1.0,0.5,0.6,0.2)translate<+2.2,0.6,-1.9>}
}
#end
#macro SPC_XTAL_OSZ_CFPT_37()
object{SPC_XTAL_OSZ_CFPT_GRND("CFPT-37")}
#end
#macro SPC_XTAL_OSZ_CFPT_125()
object{SPC_XTAL_OSZ_CFPT_GRND("CFPT-125")}
#end
#macro SPC_XTAL_OSZ_CFPT_126()
object{SPC_XTAL_OSZ_CFPT_GRND("CFPT-126")}
#end
/********************************************************************************************************************************************
//Quarz Oszillator im DIP14
********************************************************************************************************************************************/
#macro SPC_XTAL_OSZ_DIP14_GRND(value)
union{
box{<-10.15,1,-5.6><10.15,2,5.6>}
box{<-9.15,1,-6.6><9.15,2,6.6>}
box{<-9.15,1,-5.6><-10.15,2,-6.6>}
cylinder{<9.15,1,-5.6><9.15,2,-5.6>1}
cylinder{<-9.15,1,5.6><-9.15,2,5.6>1}
cylinder{<9.15,1,5.6><9.15,2,5.6>1}
box{<-9.5,2,-4.95><9.5,5,4.95>}
box{<-8.5,2,-5.95><8.5,5,5.95>}
box{<-8.5,5,-4.95><8.5,6,4.95>}
sphere_sweep{
linear_spline
6
<-8.5,2,-4.95>1
<-8.5,5,-4.95>1
<8.5,5,-4.95>1
<8.5,5,4.95>1
<-8.5,5,4.95>1
<-8.5,5,-4.95>1}
cylinder{<8.5,5,-4.95><8.5,2,-4.95>1}
cylinder{<8.5,5,4.95><8.5,2,4.95>1}
cylinder{<-8.5,5,4.95><-8.5,2,4.95>1}
cylinder{<-3*2.54,5,-3.8><-3*2.54,6.01,-3.8>0.4 pigment{Black}}
text {ttf besch_font value 0.5, 0 pigment{White*0.5} scale<2,2,2> rotate<90,0,0> translate<-3*2.54,6.01,0>}
cylinder{<-3*2.54,1,-3.8><-3*2.54,-1*(pin_length+pcb_height)+0.2,-3.8>0.2}
cylinder{<3*2.54,1,-3.8><3*2.54,-1*(pin_length+pcb_height)+0.2,-3.8>0.2}
cylinder{<3*2.54,1,3.8><3*2.54,-1*(pin_length+pcb_height)+0.2,3.8>0.2}
cylinder{<-3*2.54,1,3.8><-3*2.54,-1*(pin_length+pcb_height)+0.2,3.8>0.2}
sphere{<3*2.54-1,1,3.8-1>0.8 pigment{Gray20}}
sphere{<3*2.54-1,1,-3.8+1>0.8 pigment{Gray20}}
sphere{<-3*2.54+1,1,-3.8+1>0.8 pigment{Gray20}}
sphere{<-3*2.54+1,1,3.8-1>0.8 pigment{Gray20}}
translate<0,-0.2,0>
texture{col_silver}}
#end
#macro SPC_XTAL_OSZ_DIP14(value)
object{SPC_XTAL_OSZ_DIP14_GRND(value)}
#end
/********************************************************************************************************************************************
//Quarz Oszillator im DIP8
********************************************************************************************************************************************/
#macro SPC_XTAL_OSZ_DIP8_GRND(value)
union{
box{<-10.15+1.5*2.54,1,-5.6><10.15-1.5*2.54,2,5.6>}
box{<-9.15+1.5*2.54,1,-6.6><9.15-1.5*2.54,2,6.6>}
box{<-9.15+1.5*2.54,1,-5.6><-10.15+1.5*2.54,2,-6.6>}
cylinder{<9.15-1.5*2.54,1,-5.6><9.15-1.5*2.54,2,-5.6>1}
cylinder{<-9.15+1.5*2.54,1,5.6><-9.15+1.5*2.54,2,5.6>1}
cylinder{<9.15-1.5*2.54,1,5.6><9.15-1.5*2.54,2,5.6>1}
box{<-9.5+1.5*2.54,2,-4.95><9.5-1.5*2.54,5,4.95>}
box{<-8.5+1.5*2.54,2,-5.95><8.5-1.5*2.54,5,5.95>}
box{<-8.5+1.5*2.54,5,-4.95><8.5-1.5*2.54,6,4.95>}
sphere_sweep{
linear_spline
6
<-8.5+1.5*2.54,2,-4.95>1
<-8.5+1.5*2.54,5,-4.95>1
<8.5-1.5*2.54,5,-4.95>1
<8.5-1.5*2.54,5,4.95>1
<-8.5+1.5*2.54,5,4.95>1
<-8.5+1.5*2.54,5,-4.95>1}
cylinder{<8.5-1.5*2.54,5,-4.95><8.5-1.5*2.54,2,-4.95>1}
cylinder{<8.5-1.5*2.54,5,4.95><8.5-1.5*2.54,2,4.95>1}
cylinder{<-8.5+1.5*2.54,5,4.95><-8.5+1.5*2.54,2,4.95>1}
cylinder{<-3*2.54+1.5*2.54,5,-3.8><-3*2.54+1.5*2.54,6.01,-3.8>0.4 pigment{Black}}
text {ttf besch_font value 0.5, 0 pigment{Black} scale 1.3 rotate<90,0,0> translate<-3*2.54+1.5*2.54,6.01,0>}
cylinder{<-3*2.54+1.5*2.54,1,-3.8><-3*2.54+1.5*2.54,-1*(pin_length+pcb_height)+0.2,-3.8>0.2}
cylinder{<3*2.54-1.5*2.54,1,-3.8><3*2.54-1.5*2.54,-1*(pin_length+pcb_height)+0.2,-3.8>0.2}
cylinder{<3*2.54-1.5*2.54,1,3.8><3*2.54-1.5*2.54,-1*(pin_length+pcb_height)+0.2,3.8>0.2}
cylinder{<-3*2.54+1.5*2.54,1,3.8><-3*2.54+1.5*2.54,-1*(pin_length+pcb_height)+0.2,3.8>0.2}
sphere{<3*2.54-1-1.5*2.54,1,3.8-1>0.8 pigment{Gray20}}
sphere{<3*2.54-1-1.5*2.54,1,-3.8+1>0.8 pigment{Gray20}}
sphere{<-3*2.54+1+1.5*2.54,1,-3.8+1>0.8 pigment{Gray20}}
sphere{<-3*2.54+1+1.5*2.54,1,3.8-1>0.8 pigment{Gray20}}
translate<0,-0.2,0>
texture{col_silver}}
#end
#macro SPC_XTAL_OSZ_DIP8(value)
object{SPC_XTAL_OSZ_DIP8_GRND(value)}
#end
/********************************************************************************************************************************************
//PLASTIC" DIP8 & DIP14 CRYSTAL OSCILLATORS BY J. ZEGLINSKI
// <JAZeglinski(replace with at)rogers.com>
********************************************************************************************************************************************/
#macro SPC_XTAL_OSZ_PDIP_GRND(p,value)
#macro OSZ_SYMBOL(Symbol_Color, Background_Color)
// Create the "classic Oscillator symbol" at origin on X-Z Plane
// Basic symbol is (2.4mm wide x 1.2mm tall) - use "scale" on macro call to fit other size XTAL bodies
#local T=0.15; // Symbol line thickness
union{
box{ <(-0.1-T),0,(-0.6-T)><(0.1+T),0,(0.6+T)> }
box{ <-0.1,0.01,-0.6><0.1,0.01,0.6> pigment { Symbol_Color } } // set inside of box to IC body color to create a square "O"
box{ <(-0.5-T),0,-0.6-T><-0.5,0.01,0.6+T> }
box{ <-0.5,0,-T/2><-1.2,0,T/2> }
box{ <0.5+T,0,-0.6-T><0.5,0,0.6+T> }
box{ <0.5,0,-T/2><1.2,0,T/2> }
texture{ pigment { Background_Color } }
}
#end
#if(p=8)
union{
object{ IC_DIS_DIP8A4(value,"") } // use "IC.inc" macro to create PLASTIC DIP8 with 4 corner pins and "IC Name"
// Add the "Crystal Oscillator Symbol" to IC created by macro with Name already on it.
#local V=(3.2+0.01+0.25); // vertical translation distance to final IC surface created in DIP08A4 macro
object{ OSZ_SYMBOL(Gray30,Gray60) scale<1.5,1,1> translate<0,V,2> } // Plot & scale the symbol, and move up into DIP surface position
}
#else
union{
object{ IC_DIS_DIP14A4(value,"") } // use "IC.inc" macro to create PLASTIC DIP14 with 4 corner pins and "IC Name"
// Add the "Crystal Oscillator Symbol" to IC created by macro with Name already on it.
#local V=(3.2+0.01+0.25); // vertical translation distance to final IC surface created in DIP14A4 macro
object{ OSZ_SYMBOL(Gray30,Gray60) scale<1.5,1,1> translate<0,V,2> } // Plot & scale the symbol, and elevate into DIP surface position
}
#end
#end
#macro SPC_XTAL_OSZ_PDIP8(value)
object{SPC_XTAL_OSZ_PDIP_GRND(8,value)}
#end
#macro SPC_XTAL_OSZ_PDIP14(value)
object{SPC_XTAL_OSZ_PDIP_GRND(14,value)}
#end
//End of Macros
/**********************************************************************
Testing
**********************************************************************/
#ifndef(inc_testmode)
//Size of the Grid Plane (+/- span)
#local XYZ_span=20;
//Orientation axes
cylinder{<-XYZ_span,0,0><XYZ_span,0,0>0.1 pigment{Blue}} //X
cylinder{<0,-XYZ_span,0><0,XYZ_span,0>0.1 pigment{Red}} //Y
cylinder{<0,0,-XYZ_span><0,0,XYZ_span>0.1 pigment{Yellow}} //Z
// Useful GRIDS:
#local XYZ_step= 1 ; // axis increment
#local XYZ_cnt = 0; // loop counter
#local xyz_thick = 0.05; // grid line thickness
// GRID PLANES: Remove comment begin/end to activate & select PLANES:
#while (XYZ_cnt <= XYZ_span)
cylinder{<-XYZ_span,0,XYZ_cnt><XYZ_span,0,XYZ_cnt>xyz_thick pigment{Blue}} // Positive Z-Lines
cylinder{<-XYZ_span,0,-XYZ_cnt><XYZ_span,0,-XYZ_cnt>xyz_thick pigment{Blue}} // Negative Z-Lines
//cylinder{<0,XYZ_cnt,-XYZ_span><0,XYZ_cnt,XYZ_span>xyz_thick pigment{Red}} // Positive Y-Z Plane Lines
//cylinder{<0,-XYZ_cnt,-XYZ_span><0,-XYZ_cnt,XYZ_span>xyz_thick pigment{Red}} // Negative Y-Z Plane Lines
//cylinder{<-XYZ_span,XYZ_cnt,0><XYZ_span,XYZ_cnt,0>xyz_thick pigment{Red}} // Positive Y-X Plane Lines
//cylinder{<-XYZ_span,-XYZ_cnt,0><XYZ_span,-XYZ_cnt,0>xyz_thick pigment{Red}} // Negative Y-X Plane Lines
cylinder{<XYZ_cnt,0,-XYZ_span><XYZ_cnt,0,XYZ_span>xyz_thick pigment{Yellow}} // Positive X-Lines
cylinder{<-XYZ_cnt,0,-XYZ_span><-XYZ_cnt,0,XYZ_span>xyz_thick pigment{Yellow}} // Negative X-Lines
#local XYZ_cnt = XYZ_cnt+XYZ_step;
#end
camera
{
#local tt = 40; //let's you change the distance easily
location <-tt,tt,-tt>
//location<0,5,-50> //alternate location
look_at <0,0,0> //best to select the approximate centre of the object
angle 30
}
light_source { <100, 100, -100> White}
light_source { <-100, 100, -100> White }
light_source { <-100, 100, 100> White }
light_source { <100, 100, 100> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
//light_source { <-tt,tt,-tt> White }
background{Grey}
#end
#end
|