Commit 0c0f5567 authored by Johannes Walcher's avatar Johannes Walcher
Browse files

svg-ified ssn logo

parent 1f1989d0
......@@ -4,9 +4,144 @@
* StuStaNet common tools
*/
module stustanet_logo(height=1) {
translate([-20, -4, 0])
linear_extrude(height=height, convexity=100)
//import(file="files/StuStaNet_Logo.dxf");
import(scale=0.16, file="files/logo.dxf");
module stustanet_logo(height=1, width=270, center=0) {
module poly_path75(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[414.497196,53.392017],[411.743727,51.464387],[409.259445,49.213582],[407.074538,46.669727],[405.219193,43.862947],[403.723599,40.823367],[402.617942,37.581112],[401.932411,34.166307],[401.697192,30.609076],[401.697192,-30.990943],[414.497196,-30.990943],[414.497196,53.388817]]);
}
}
module poly_path85(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[-292.511025,53.392017],[-295.264801,51.464387],[-297.749226,49.213582],[-299.934152,46.669727],[-301.789428,43.862947],[-303.284903,40.823367],[-304.390428,37.581112],[-305.075854,34.166307],[-305.311029,30.609076],[-305.311029,-30.990943],[-292.511025,-30.990943],[-292.511025,53.388817]]);
}
}
module poly_path77(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[258.689148,41.064546],[260.616777,43.818016],[262.867582,46.302298],[265.411437,48.487205],[268.218217,50.342549],[271.257797,51.838143],[274.500052,52.943800],[277.914858,53.629331],[281.472088,53.864550],[346.713708,53.864550],[346.713708,41.064546],[258.691281,41.064546]]);
}
}
module poly_polygon11(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[-99.016564,-69.866688],[14.137604,69.866688],[128.138707,69.866688],[14.984538,-69.866688]]);
}
}
module poly_rect71(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[258.758481,-6.933335],[328.822501,-6.933335],[328.822501,5.866669],[258.758481,5.866669]]);
}
}
module poly_polygon13(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[-237.684341,-69.866688],[-124.532306,69.866688],[-10.526937,69.866688],[-123.678972,-69.866688]]);
}
}
module poly_path87(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[39.030412,53.389883],[36.276943,51.462254],[33.792661,49.211449],[31.607754,46.667594],[29.752409,43.860814],[28.256815,40.821234],[27.151158,37.578978],[26.465627,34.164173],[26.230408,30.606943],[26.230408,-30.993076],[39.030412,-30.993076],[39.030412,53.386683]]);
}
}
module poly_path89(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[-161.427250,-52.999483],[-158.673781,-51.071853],[-156.189499,-48.821049],[-154.004592,-46.277194],[-152.149248,-43.470414],[-150.653653,-40.430833],[-149.547997,-37.188578],[-148.862465,-33.773773],[-148.627246,-30.216543],[-148.627246,31.383476],[-161.427250,31.383476],[-161.427250,-52.996283]]);
}
}
module poly_polygon7(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[178.318989,-69.866688],[291.472091,69.866688],[405.471060,69.866688],[292.316891,-69.866688]]);
}
}
module poly_polygon81(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[85.958427,4.800002],[118.155770,4.800002],[128.822440,17.600006],[85.958427,17.600006]]);
}
}
module poly_path73(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[461.425211,-41.066679],[461.425211,-53.866684],[354.758511,-53.866684],[263.025149,-53.866684],[257.650614,-53.324906],[252.644879,-51.771066],[248.115144,-49.312401],[244.168610,-46.056148],[240.912475,-42.109544],[238.453941,-37.579828],[236.900207,-32.574237],[236.358474,-27.200009],[236.358474,27.200008],[236.076765,29.994718],[235.268807,32.597677],[233.990348,34.953136],[232.297139,37.005345],[230.244930,38.698554],[227.889471,39.977012],[225.286512,40.784971],[222.491803,41.066680],[219.322519,40.702646],[216.411934,39.665612],[213.842350,38.038179],[211.696066,35.902945],[147.253379,-43.937080],[147.252313,-43.937080],[145.300808,-46.102631],[143.125878,-48.043682],[140.747298,-49.740432],[138.184843,-51.173083],[135.458288,-52.321833],[132.587408,-53.166883],[129.591978,-53.688433],[126.491773,-53.866684],[122.973905,-53.637350],[201.730196,43.936014],[201.730196,43.937080],[203.681791,46.102279],[205.856948,48.043065],[208.235830,49.739626],[210.798599,51.172149],[213.525419,52.320823],[216.396451,53.165833],[219.391858,53.687369],[222.491803,53.865617],[227.866032,53.323840],[232.871623,51.770000],[237.401339,49.311334],[241.347942,46.055081],[244.604195,42.108478],[247.062861,37.578762],[248.616701,32.573171],[249.158478,27.198942],[249.158478,-27.200009],[249.440186,-29.994718],[250.248145,-32.597677],[251.526604,-34.953136],[253.219812,-37.005345],[255.272021,-38.698554],[257.627481,-39.977012],[260.230440,-40.784971],[263.025149,-41.066679],[354.956911,-41.066679]]);
}
}
module poly_polygon9(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[39.651212,-69.866688],[152.805381,69.866688],[266.804350,69.866688],[153.651248,-69.866688]]);
}
}
module poly_path83(h)
{
scale([25.4/90, -25.4/90, 1]) union()
{
linear_extrude(height=h)
polygon([[185.480591,53.636283],[106.535500,-44.162147],[104.586981,-46.280971],[102.422149,-48.179132],[100.060092,-49.837568],[97.519897,-51.237216],[94.820653,-52.359014],[91.981445,-53.183900],[89.021363,-53.692811],[85.959494,-53.866684],[-3.485868,-53.866684],[-100.708298,-53.866684],[-104.265218,-53.631508],[-107.679850,-52.946083],[-110.922008,-51.840558],[-113.961502,-50.345082],[-116.768147,-48.489807],[-119.311754,-46.304881],[-121.562136,-43.820455],[-123.489105,-41.066679],[-125.136222,-37.909712],[-126.356439,-34.522944],[-127.114456,-30.941376],[-127.374973,-27.200009],[-126.977142,-22.585474],[-125.828323,-18.228939],[-123.995528,-14.197404],[-121.545771,-10.557870],[-118.546064,-7.377336],[-115.063419,-4.722801],[-111.164849,-2.661267],[-106.917367,-1.259734],[-44.145080,13.712004],[-41.936234,14.440800],[-39.908912,15.512772],[-38.097941,16.893093],[-36.538145,18.546939],[-35.264349,20.439486],[-34.311377,22.535907],[-33.714056,24.801379],[-33.507210,27.201075],[-33.788919,29.995784],[-34.596877,32.598744],[-35.875336,34.954203],[-37.568545,37.006412],[-39.620754,38.699620],[-41.976213,39.978079],[-44.579172,40.786038],[-47.373881,41.067746],[-194.377661,41.067746],[-199.321816,40.569336],[-203.926897,39.139862],[-208.094228,36.877964],[-211.725133,33.882277],[-214.720938,30.251441],[-216.982968,26.084091],[-218.412547,21.478867],[-218.911002,16.534405],[-218.911002,-27.200009],[-219.452779,-32.574237],[-221.006619,-37.579828],[-223.465284,-42.109544],[-226.721538,-46.056148],[-230.668141,-49.312401],[-235.197857,-51.771066],[-240.203448,-53.324906],[-245.577677,-53.866684],[-432.244402,-53.866684],[-435.801234,-53.631465],[-439.215654,-52.945933],[-442.457549,-51.840277],[-445.496806,-50.344682],[-448.303313,-48.489338],[-450.846958,-46.304431],[-453.097627,-43.820149],[-455.025209,-41.066679],[-456.672326,-37.909712],[-457.892543,-34.522944],[-458.650560,-30.941376],[-458.911077,-27.200009],[-458.513289,-22.585474],[-457.364576,-18.228939],[-455.531913,-14.197404],[-453.082275,-10.557870],[-450.082636,-7.377336],[-446.599973,-4.722801],[-442.701259,-2.661267],[-438.453470,-1.259734],[-375.681184,13.712004],[-373.472690,14.440755],[-371.445633,15.512605],[-369.634851,16.892755],[-368.075182,18.546406],[-366.801463,20.438756],[-365.848531,22.535007],[-365.251225,24.800358],[-365.044381,27.200008],[-365.326089,29.994718],[-366.134048,32.597677],[-367.412506,34.953136],[-369.105715,37.005345],[-371.157924,38.698554],[-373.513383,39.977012],[-376.116343,40.784971],[-378.911052,41.066680],[-461.425211,41.066680],[-461.424144,41.069880],[-459.496871,43.822905],[-457.246360,46.306681],[-454.702773,48.491057],[-451.896275,50.345882],[-448.857026,51.841008],[-445.615189,52.946283],[-442.200928,53.631558],[-438.644404,53.866684],[-378.911052,53.866684],[-375.354176,53.631465],[-371.939650,52.945933],[-368.697624,51.840277],[-365.658248,50.344682],[-362.851672,48.489338],[-360.308046,46.304431],[-358.057520,43.820149],[-356.130245,41.066680],[-354.483127,37.909712],[-353.262910,34.522944],[-352.504893,30.941376],[-352.244377,27.200008],[-352.642164,22.585474],[-353.790877,18.228939],[-355.623540,14.197404],[-358.073179,10.557870],[-361.072817,7.377336],[-364.555481,4.722801],[-368.454194,2.661267],[-372.701983,1.259734],[-435.473203,-13.710938],[-437.682356,-14.440040],[-439.709821,-15.512155],[-441.520811,-16.892495],[-443.080538,-18.546272],[-444.354216,-20.438700],[-445.307056,-22.534990],[-445.904271,-24.800356],[-446.111073,-27.200009],[-445.829364,-29.994718],[-445.021406,-32.597677],[-443.742947,-34.953136],[-442.049738,-37.005345],[-439.997529,-38.698554],[-437.642070,-39.977012],[-435.039111,-40.784971],[-432.244402,-41.066679],[-245.577677,-41.066679],[-242.782968,-40.784971],[-240.180008,-39.977012],[-237.824549,-38.698554],[-235.772340,-37.005345],[-234.079131,-34.953136],[-232.800673,-32.597677],[-231.992714,-29.994718],[-231.711006,-27.200009],[-231.711006,16.533338],[-231.482568,20.683934],[-230.813505,24.701291],[-229.728193,28.561374],[-228.251005,32.240143],[-226.406317,35.713563],[-224.218503,38.957596],[-221.711940,41.948203],[-218.911002,44.661347],[-213.630917,48.516182],[-207.707132,51.412016],[-204.538945,52.464371],[-201.251946,53.233850],[-197.860172,53.706079],[-194.377661,53.866684],[-47.374948,53.866684],[-43.818072,53.631465],[-40.403546,52.945933],[-37.161520,51.840277],[-34.122144,50.344682],[-31.315568,48.489338],[-28.771942,46.304431],[-26.521417,43.820149],[-24.594141,41.066680],[-22.947024,37.909712],[-21.726807,34.522944],[-20.968790,30.941376],[-20.708273,27.200008],[-21.106061,22.585474],[-22.254774,18.228939],[-24.087437,14.197404],[-26.537075,10.557870],[-29.536713,7.377336],[-33.019377,4.722801],[-36.918091,2.661267],[-41.165880,1.259734],[-103.938166,-13.712004],[-106.147319,-14.440800],[-108.174784,-15.512772],[-109.985774,-16.893093],[-111.545502,-18.546939],[-112.819179,-20.439486],[-113.772019,-22.535907],[-114.369234,-24.801379],[-114.576036,-27.201075],[-114.294327,-29.995784],[-113.486369,-32.598744],[-112.207910,-34.954203],[-110.514701,-37.006412],[-108.462492,-38.699620],[-106.107033,-39.978079],[-103.504074,-40.786038],[-100.709365,-41.067746],[85.958427,-41.067746],[89.128145,-40.703513],[92.038562,-39.665879],[94.607580,-38.037445],[96.753097,-35.900811],[161.195784,43.937080],[163.147378,46.102279],[165.322535,48.043065],[167.701417,49.739626],[170.264187,51.172149],[172.991006,52.320823],[175.862038,53.165833],[178.857445,53.687369],[181.957390,53.865617],[185.480591,53.636283]]);
}
}
factor = width/270;
dx=260/2;
dy=15;
center_factor = (center * -1) + 1;
scale([factor, factor, 1])
translate([center_factor * dx, center_factor * dy, 0])
{
poly_path75(height);
poly_path85(height);
poly_path77(height);
poly_rect71(height);
poly_path87(height);
poly_path89(height);
poly_polygon81(height);
poly_path73(height);
poly_path83(height);
}
}
stustanet_logo(height=1, width=300, center=1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment