Fix rotation problem
This commit is contained in:
parent
f91c00bd74
commit
2ac86c04a9
1 changed files with 50 additions and 52 deletions
|
|
@ -105,8 +105,7 @@ module render_bottle_clip(name="", font="", logo="", format=0, has_ears=true) {
|
||||||
width = 2.5;
|
width = 2.5;
|
||||||
|
|
||||||
|
|
||||||
scale([5, 5, 5])
|
scale([5, 5, 5]) {
|
||||||
rotate(45, [0, 0, 1]) {
|
|
||||||
difference() {
|
difference() {
|
||||||
bottle_clip(
|
bottle_clip(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
|
|
@ -119,13 +118,13 @@ module render_bottle_clip(name="", font="", logo="", format=0, has_ears=true) {
|
||||||
|
|
||||||
// Render ears if requested
|
// Render ears if requested
|
||||||
if (has_ears) {
|
if (has_ears) {
|
||||||
ears(ht=ht, ru=ru, rl=rl);
|
ears(ht=ht, ru=ru, rl=rl, clip_width=width, ears_style=ears_style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render ears if requested
|
// Render ears if requested
|
||||||
if (has_ears && RENDER_COLOR_EARS) {
|
if (has_ears && RENDER_COLOR_EARS) {
|
||||||
ears(ht=ht, ru=ru, rl=rl);
|
ears(ht=ht, ru=ru, rl=rl, clip_width=width, ears_style=ears_style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -197,7 +196,7 @@ 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="c3cat", font="write/orbitron.dxf", logo="") {
|
||||||
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]) {
|
|
||||||
// main cylinder
|
// main cylinder
|
||||||
if (RENDER_COLOR_CLIP) {
|
if (RENDER_COLOR_CLIP) {
|
||||||
color("black") difference() {
|
color("black") difference() {
|
||||||
|
|
@ -235,7 +234,6 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
|
||||||
outer_cutoff(rl, e, ru, ht, width);
|
outer_cutoff(rl, e, ru, ht, width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module outer_cutoff(rl, e, ru, ht, width) {
|
module outer_cutoff(rl, e, ru, ht, width) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue