Add two variables
Add the FONT variable Propagate the LOGO_FILE
This commit is contained in:
parent
aaf497d736
commit
301c06da5f
1 changed files with 10 additions and 3 deletions
|
|
@ -32,6 +32,7 @@ $fn = 360;
|
||||||
|
|
||||||
NAME = "c3cat";
|
NAME = "c3cat";
|
||||||
LOGO_FILE = ""; // empty string is catear model
|
LOGO_FILE = ""; // empty string is catear model
|
||||||
|
FONT = ""; // empty string is for Orbitron font
|
||||||
RENDER_COLOR_CLIP = true;
|
RENDER_COLOR_CLIP = true;
|
||||||
RENDER_COLOR_TEXT = true;
|
RENDER_COLOR_TEXT = true;
|
||||||
RENDER_COLOR_LOGO = true;
|
RENDER_COLOR_LOGO = true;
|
||||||
|
|
@ -64,7 +65,9 @@ scale([0.2, 0.2, 0.2]) {
|
||||||
scale([5, 5, 5])
|
scale([5, 5, 5])
|
||||||
rotate(45, [0, 0, 1])
|
rotate(45, [0, 0, 1])
|
||||||
bottle_clip(
|
bottle_clip(
|
||||||
name=NAME);
|
name=NAME,
|
||||||
|
font=FONT,
|
||||||
|
logo=LOGO_FILE);
|
||||||
|
|
||||||
translate([ 15*5, 0*5, 18*5])
|
translate([ 15*5, 0*5, 18*5])
|
||||||
rotate(-80, [0, 1, 0])
|
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
|
e = 100; // should be big enough, used for the outer boundary of the text/logo
|
||||||
rotate([0, 0, -45]) {
|
rotate([0, 0, -45]) {
|
||||||
// main cylinder
|
// main cylinder
|
||||||
|
|
@ -219,7 +224,9 @@ module catear() {
|
||||||
* bottles (like fritz cola, etc.). All parameters are passed to the module
|
* bottles (like fritz cola, etc.). All parameters are passed to the module
|
||||||
* bottle_clip(), see there for their documentation.
|
* 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="");
|
bottle_clip(name=name, ru=13, rl=15, ht=26, width=width, font=font, logo="");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue