[WIP] bottle tag logo
This commit is contained in:
parent
892899c511
commit
89a33df7ff
4 changed files with 973 additions and 15 deletions
|
@ -61,7 +61,7 @@ USE_TINY_EARS = true;
|
|||
*/
|
||||
scale([0.2, 0.2, 0.2]) {
|
||||
difference() {
|
||||
scale([5, 5, 5]) rotate(45, [0, 0, 1]) bottle_clip(name=NAME);
|
||||
scale([5, 5, 5]) rotate(45, [0, 0, 1]) bottle_clip(name=NAME, logo=LOGO_FILE);
|
||||
translate([ 15*5, 0*5, 18*5]) rotate(80, [0, 1, 0]) catear();
|
||||
translate([-15*5, 0*5, 18*5]) rotate(-80, [0, 1, 0]) catear();
|
||||
}
|
||||
|
@ -93,6 +93,7 @@ module name(name, font, rl, ht, ru) {
|
|||
module logo(logo, rl, ht, ru, width) {
|
||||
echo("logo: ", logo);
|
||||
if(logo == "") {
|
||||
echo("CATEAR LOGO");
|
||||
ear_size=ht;
|
||||
echo("ht: ", ht);
|
||||
echo("ru: ", ru);
|
||||
|
@ -114,32 +115,29 @@ module logo(logo, rl, ht, ru, width) {
|
|||
with_rake=false
|
||||
);
|
||||
} else {
|
||||
echo("LOGO: ", logo);
|
||||
// The logo has been split in 3 parts. // well was... TODO
|
||||
/*
|
||||
rotate([0,0,-48]) translate([0,0,ht*3/4-0.1])
|
||||
rotate([0,0,-45]) translate([0,0,ht*3/4-0.1])
|
||||
rotate([90,0,0])
|
||||
scale([0.9,0.9,1])
|
||||
scale([0.8,0.8,1])
|
||||
scale([ht/100,ht/100,1])
|
||||
translate([-25,-29,0.5])
|
||||
translate([-32,-33,0.5])
|
||||
linear_extrude(height=max(ru,rl)*2)
|
||||
import("logo_1.dxf");
|
||||
*/
|
||||
import("test.svg");
|
||||
translate([0,0,ht*3/4-0.1])
|
||||
rotate([90,0,0])
|
||||
scale([0.8,0.8,1])
|
||||
scale([ht/100,ht/100,1])
|
||||
translate([-18,-22,0.5])
|
||||
translate([-32,-33,0.5])
|
||||
linear_extrude(height=max(ru,rl)*2)
|
||||
import(logo);
|
||||
/*
|
||||
rotate([0,0,44]) translate([0,0,ht*3/4-0.1])
|
||||
rotate([0,0,45]) translate([0,0,ht*3/4-0.1])
|
||||
rotate([90,0,0])
|
||||
scale([0.7,0.7,1])
|
||||
scale([0.8,0.8,1])
|
||||
scale([ht/100,ht/100,1])
|
||||
translate([-25,-26,0.5])
|
||||
translate([-32,-33,0.5])
|
||||
linear_extrude(height=max(ru,rl)*2)
|
||||
import("logo_3.dxf");
|
||||
*/
|
||||
import("test.svg");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -153,7 +151,7 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
|
|||
difference() {
|
||||
union() {
|
||||
name(name=name, font=font, rl=rl, ht=ht, ru=ru);
|
||||
logo(logo=logo, rl=rl, ht=ht, ru=ru, width=width);
|
||||
logo(logo=logo, rl=rl, ht=ht, ru=ru, width=2*width);
|
||||
}
|
||||
cylinder(r1=rl+width/2, r2=ru+width/2, h=ht);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue