/** Copyright (C) 2013 František Kučera (frantovo.cz). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". */ vyska = 1.2; delka = 80; sirka = 20; sikmaHrana = sqrt(pow(sirka,2)/2); echo(sikmaHrana); module roh() { translate([0,sirka/2,vyska/2]) rotate([0,0,45]) difference() { cube([sikmaHrana, sikmaHrana, vyska], center=true); //cube([sikmaHrana/2, sikmaHrana/2, vyska*2], center=true); cylinder(r=sirka/8, h=vyska*2, $fn=80, center=true); } } module obdelnik() { cube([delka,sirka,vyska]); } module text() { translate([12, 3.5, 0]) scale([40,40,5]) linear_extrude(height = 1.2, center = true, convexity = 10) { import(file="i1984.dxf"); } } rotate([0,180,0]) union() { difference() { obdelnik(); translate([0,0,-vyska/2]) scale([1,1,2]) hull() roh(); text(); } roh(); }