Compare commits

...

1 commit

Author SHA1 Message Date
djerun d4d754a7e7 c3cat_bottle_tag v1.1 2024-05-14 20:44:10 +02:00

View file

@ -44,15 +44,21 @@ include <write/Write.scad>
* font: the path to a font for Write.scad.
*/
/* currently openscad fails to render `Ohren_4.stl` outside of the preview mode */
//difference() {
rotate(45, [0, 0, 1]) bottle_clip(name="c3cat");
// translate([ 15, 0, 18]) rotate(80, [0, 1, 0]) catear();
// translate([-15, 0, 18]) rotate(-80, [0, 1, 0]) catear();
//}
//
//translate([0, 5, 0]) catear();
//rotate(180) translate([0, 5, 0]) catear();
/**
* currently openscad fails to render the original `Ohren_4.stl` outside of the preview mode
* according to [the wiki](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#Why_is_my_imported_STL_file_appearing_with_F5_but_not_F6?) this is the stls fault
* using meshlab to run `Filters` -> `Cleaning and Repairing` -> `Remove T-Vertices` by `Edge-Flip` with `Ratio` of `1000000` before importing the stl works but but two errors remain.
*/
scale([0.2, 0.2, 0.2]) {
difference() {
scale([5, 5, 5]) rotate(45, [0, 0, 1]) bottle_clip(name="c3cat");
translate([ 15*5, 0*5, 18*5]) rotate(80, [0, 1, 0]) catear();
translate([-15*5, 0*5, 18*5]) rotate(-80, [0, 1, 0]) catear();
}
translate([0, 5*5, 0]) catear();
rotate(180) translate([0, 5*5, 0]) catear();
}
module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/orbitron.dxf", logo="") {
@ -116,8 +122,8 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o
module catear() {
rotate(-90, [0, 0, 1]) union() {
scale([0.2, 0.2, 0.2]) translate([0, -85]) import("catear.stl");
scale([0.2, -0.2, 0.2]) translate([0, -85]) import("catear.stl");
scale([1, 1 ,1]) translate([0, -85]) import("catear.stl");
scale([1, -1, 1]) translate([0, -85]) import("catear.stl");
}
}