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;
|
||||
|
||||
|
||||
scale([5, 5, 5])
|
||||
rotate(45, [0, 0, 1]) {
|
||||
scale([5, 5, 5]) {
|
||||
difference() {
|
||||
bottle_clip(
|
||||
name=NAME,
|
||||
|
|
@ -119,13 +118,13 @@ module render_bottle_clip(name="", font="", logo="", format=0, has_ears=true) {
|
|||
|
||||
// Render ears if requested
|
||||
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
|
||||
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="") {
|
||||
e = 100; // should be big enough, used for the outer boundary of the text/logo
|
||||
rotate([0, 0, -45]) {
|
||||
|
||||
// main cylinder
|
||||
if (RENDER_COLOR_CLIP) {
|
||||
color("black") difference() {
|
||||
|
|
@ -236,7 +235,6 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module outer_cutoff(rl, e, ru, ht, width) {
|
||||
// outer cylinder which is subtracted, so the text and the logo end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue