c3cat_bottle_tag v1.1

This commit is contained in:
djerun 2024-05-14 20:22:55 +02:00
parent 27e5d098b2
commit 2c2434b7a0

View file

@ -44,15 +44,21 @@ include <write/Write.scad>
* font: the path to a font for 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() { * currently openscad fails to render the original `Ohren_4.stl` outside of the preview mode
rotate(45, [0, 0, 1]) bottle_clip(name="c3cat"); * 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
// translate([ 15, 0, 18]) rotate(80, [0, 1, 0]) catear(); * 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.
// translate([-15, 0, 18]) rotate(-80, [0, 1, 0]) catear(); */
//} scale([0.2, 0.2, 0.2]) {
// difference() {
//translate([0, 5, 0]) catear(); scale([5, 5, 5]) rotate(45, [0, 0, 1]) bottle_clip(name="c3cat");
//rotate(180) translate([0, 5, 0]) catear(); 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="") { 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() { module catear() {
rotate(-90, [0, 0, 1]) union() { rotate(-90, [0, 0, 1]) union() {
scale([0.2, 0.2, 0.2]) translate([0, -85]) import("catear.stl"); scale([1, 1 ,1]) 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");
} }
} }