30 lines
831 B
OpenSCAD
30 lines
831 B
OpenSCAD
// some basic 2d-to-3d-extrusion of Vectorfiles
|
|
// by zeus - zeus@ctdo.de - CC-BY-NC-4.0
|
|
// -> https://www.thingiverse.com/zeus
|
|
// -> https://github.com/zeus86
|
|
// 2021-02-18
|
|
// ###############
|
|
h=4; //height
|
|
w=25; //width
|
|
l=112.5; //lenght
|
|
hd=10; //hole_dia
|
|
emd=1; // embossing depth
|
|
$fn=100; //resolution
|
|
// ###############
|
|
difference(){
|
|
translate([0,0,h/2*1]){
|
|
hull(){
|
|
translate([+(l-w)/2,0,0])cylinder(h=h,r=w/2,center=true,$fn=100);
|
|
translate([-(l-w)/2,0,0])cylinder(h=h,r=w/2,center=true,$fn=100);
|
|
}
|
|
}
|
|
translate([w/3,0,h-emd]){
|
|
scale([0.66,0.66,0.66]){
|
|
linear_extrude(height = h/2*1){
|
|
import("snakemake_sw.svg",center=true);
|
|
}
|
|
}
|
|
}
|
|
translate([-(l/2)+(w/3),0,h/2])cylinder(h=h+0.1,r=hd/2,center=true);
|
|
}
|