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

25 lines
742 B
OpenSCAD

// some basic 2d-to-3d-extrusion of Vectorfiles
// ###############
h=3; //height
w=20; //width
l=75; //lenght
hd=w/2.25; //hole_dia
emd=1.25; // embossing depth
q=0.01; // minimal value to avoid visual glitches
$fn=100; //resolution
// ###############
difference(){
translate([0,0,h/2]){
hull(){
for(x=[(l-w)/2,-(l-w)/2]){
translate([x,0,0])cylinder(h=h,r=w/2,center=true); // body
}}}
translate([-(l/2)+(w/3),0,h/2]){
cylinder(h=h+q,r=hd/2,center=true); // keychain-hole
}
translate([w/4,0,h-emd]){
scale([0.4,0.4,1]){
linear_extrude(height = emd+q){
import("src/GONICUS-Logo_2022_logo-only-new.svg",center=true); // logo
}}}
}