Renamed variables for more clarity

RENDER_COLOR_ONE -> RENDER_COLOR_CLIP

RENDER_COLOR_TWO -> RENDER_COLOR_TEXT

RENDER_COLOR_THREE -> RENDER_COLOR_LOGO
This commit is contained in:
Ajabep 2026-01-09 20:33:43 +01:00
commit aaf497d736
2 changed files with 18 additions and 18 deletions

View file

@ -32,7 +32,7 @@ $fn = 360;
NAME = "c3cat";
LOGO_FILE = ""; // empty string is catear model
RENDER_COLOR_ONE = true;
RENDER_COLOR_CLIP = true;
RENDER_COLOR_TEXT = true;
RENDER_COLOR_LOGO = true;
USE_TINY_EARS = true;
@ -74,13 +74,13 @@ scale([0.2, 0.2, 0.2]) {
rotate(-80, [0, 1, 0])
catear();
}
if (RENDER_COLOR_TWO) {
if (RENDER_COLOR_TEXT) {
color("orange")
translate([ 15*5, 0*5, 18*5])
rotate(80, [0, 1, 0])
catear();
}
if (RENDER_COLOR_THREE) {
if (RENDER_COLOR_LOGO) {
color("yellow")
translate([-15*5, 0*5, 18*5])
rotate(-80, [0, 1, 0])
@ -156,7 +156,7 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
e = 100; // should be big enough, used for the outer boundary of the text/logo
rotate([0, 0, -45]) {
// main cylinder
if (RENDER_COLOR_ONE) {
if (RENDER_COLOR_CLIP) {
color("black") difference() {
cylinder(r1=rl+width, r2=ru+width, h=ht);
difference() {
@ -175,7 +175,7 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
}
}
// text
if (RENDER_COLOR_TWO) {
if (RENDER_COLOR_TEXT) {
color("orange") difference() {
name(name=name, font=font, rl=rl, ht=ht, ru=ru);
cylinder(r1=rl+width/2, r2=ru+width/2, h=ht);
@ -183,7 +183,7 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
}
}
// logo
if (RENDER_COLOR_THREE) {
if (RENDER_COLOR_LOGO) {
color("yellow") difference() {
logo(logo=logo, rl=rl, ht=ht, ru=ru, width=2*width);
cylinder(r1=rl+width/2, r2=ru+width/2, h=ht);