From 2c2434b7a0b025ef75f6a930dc6b1d3c7fa65ae8 Mon Sep 17 00:00:00 2001 From: djerun Date: Tue, 14 May 2024 20:22:55 +0200 Subject: [PATCH] c3cat_bottle_tag v1.1 --- c3cat-bottle-clip/c3cat-bottle-clip.scad | 28 ++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/c3cat-bottle-clip/c3cat-bottle-clip.scad b/c3cat-bottle-clip/c3cat-bottle-clip.scad index 861ecd8..e51e373 100644 --- a/c3cat-bottle-clip/c3cat-bottle-clip.scad +++ b/c3cat-bottle-clip/c3cat-bottle-clip.scad @@ -44,15 +44,21 @@ include * 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"); } }