diff --git a/c3cat-bottle-clip/c3cat-bottle-clip.scad b/c3cat-bottle-clip/c3cat-bottle-clip.scad index a66d7b5..631a697 100644 --- a/c3cat-bottle-clip/c3cat-bottle-clip.scad +++ b/c3cat-bottle-clip/c3cat-bottle-clip.scad @@ -32,6 +32,7 @@ $fn = 360; NAME = "c3cat"; LOGO_FILE = ""; // empty string is catear model +FONT = ""; // empty string is for Orbitron font RENDER_COLOR_CLIP = true; RENDER_COLOR_TEXT = true; RENDER_COLOR_LOGO = true; @@ -64,7 +65,9 @@ scale([0.2, 0.2, 0.2]) { scale([5, 5, 5]) rotate(45, [0, 0, 1]) bottle_clip( - name=NAME); + name=NAME, + font=FONT, + logo=LOGO_FILE); translate([ 15*5, 0*5, 18*5]) rotate(-80, [0, 1, 0]) @@ -152,7 +155,9 @@ module logo(logo, rl, ht, ru, width) { } } -module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/orbitron.dxf", logo="") { +module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="", font="", logo="") { + name = name == "" ? "c3cat" : name ; + font = font == "" ? "write/orbitron.dxf" : font ; e = 100; // should be big enough, used for the outer boundary of the text/logo rotate([0, 0, -45]) { // main cylinder @@ -219,7 +224,9 @@ module catear() { * bottles (like fritz cola, etc.). All parameters are passed to the module * bottle_clip(), see there for their documentation. */ -module bottle_clip_longneck(name="c3cat", width=2.5, font="write/orbitron.dxf") { +module bottle_clip_longneck(name="", width=2.5, font="") { + name = name == "" ? "c3cat" : name ; + font = font == "" ? "write/orbitron.dxf" : font ; bottle_clip(name=name, ru=13, rl=15, ht=26, width=width, font=font, logo=""); }