3d-stuff/openscad/own/2d-to-3d-scad/gonicus/gonicus.scad

26 lines
716 B
OpenSCAD
Raw Normal View History

2021-05-28 09:03:00 +02:00
// some basic 2d-to-3d-extrusion of Vectorfiles
// ###############
h=4; //height
w=25; //width
2022-03-04 13:59:50 +01:00
l=95; //lenght
2021-05-28 09:03:00 +02:00
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/4,0,h-emd]){
2022-03-04 13:59:50 +01:00
scale([0.4,0.4,1]){
2021-05-28 09:03:00 +02:00
linear_extrude(height = h/2*1){
2022-03-04 13:59:50 +01:00
import("src/GONICUS-Logo_2022_logo-only.svg",center=true);
2021-05-28 09:03:00 +02:00
}
}
}
translate([-(l/2)+(w/3),0,h/2])cylinder(h=h+0.1,r=hd/2,center=true);
}