teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
peeps[work] has quit [Ping timeout: 240 seconds]
L29Ah has quit [Read error: Connection reset by peer]
LordOfBikes has quit [Ping timeout: 260 seconds]
L29Ah has joined #openscad
J23k40 has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 246 seconds]
LordOfBikes has joined #openscad
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #openscad
snaked has joined #openscad
hyperair has quit [Ping timeout: 260 seconds]
misterfish has joined #openscad
qeed_ has joined #openscad
qeed has quit [Ping timeout: 256 seconds]
misterfish has quit [Remote host closed the connection]
RichardP_ has quit [Ping timeout: 246 seconds]
J23k has joined #openscad
J23k has quit [Client Quit]
J23 has joined #openscad
J23 has quit [Remote host closed the connection]
J23 has joined #openscad
L29Ah has left #openscad [#openscad]
qeed has joined #openscad
qeed_ has quit [Ping timeout: 256 seconds]
guso78k has joined #openscad
<guso78k> Being able to change POV graphically is a great feature at almost no cost. thank you!
<guso78k> hmm, why  is it called POV(Point of View) when its actually represents the Aperture of a Lens ?
<Scopeuk> isn't it generally fov (field of view) which makes more sense
ubitux has quit [Ping timeout: 240 seconds]
ubitux has joined #openscad
fardog has quit [Ping timeout: 252 seconds]
leptonix has quit [Remote host closed the connection]
fardog has joined #openscad
leptonix has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
vsellier has quit [Remote host closed the connection]
vsellier has joined #openscad
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
TheAssassin has quit [Ping timeout: 240 seconds]
TheAssassin has joined #openscad
leptonix has quit [Quit: leaving]
pah has joined #openscad
mmu_man has joined #openscad
ccox_ has joined #openscad
ccox has quit [Ping timeout: 245 seconds]
<guso78k> just wondering: in openscad you can specify a 3d vector for cube and get a prism, you specify a 2d vector for square and you get a rectangle.  would't it also make sense to specify this for sphere and cirlce to get an ellipse and ellipsoid respectively ?
leptonix has joined #openscad
little_blossom has quit [Quit: little_blossom]
fardog has quit [Ping timeout: 252 seconds]
guso78k has quit [Quit: Client closed]
fardog has joined #openscad
little_blossom has joined #openscad
raboof has quit [*.net *.split]
gwillen has quit [*.net *.split]
sinned69150 has quit [*.net *.split]
Fleck has quit [*.net *.split]
Friithian has quit [*.net *.split]
lkcl has quit [*.net *.split]
gbruno has quit [*.net *.split]
Friithian has joined #openscad
raboof has joined #openscad
sinned69150 has joined #openscad
gwillen has joined #openscad
Fleck has joined #openscad
gbruno has joined #openscad
lkcl has joined #openscad
snaked has quit [Quit: Leaving]
leptonix has quit [Ping timeout: 246 seconds]
leptonix has joined #openscad
J23 has quit [Remote host closed the connection]
J23 has joined #openscad
L29Ah has joined #openscad
leptonix has quit [Remote host closed the connection]
leptonix has joined #openscad
<J23> scale([1,2,3])sphere();
guso78k has joined #openscad
<guso78k> I know :) but for cube its easier than  scale([1,2,3]) cube();
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
mmu_man has quit [Ping timeout: 245 seconds]
aiyion1 is now known as aiyion
Alexer has quit [Ping timeout: 260 seconds]
J23 has quit [Remote host closed the connection]
J23 has joined #openscad
pah is now known as pa
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
guso78k has quit [Quit: Client closed]
L29Ah has quit [Quit: Gateway shutdown]
L29Ah has joined #openscad
Alexer has joined #openscad
J23 has quit [Remote host closed the connection]
J23 has joined #openscad
Purzel has joined #openscad
<Purzel> Hello folks
Purzel has quit [Client Quit]
Purzel has joined #openscad
<Purzel> Can anyone please help me out with some code?
peeps[work] has joined #openscad
mmu_man has joined #openscad
<teepee> Purzel: difficult to tell without seeing it
mmu_man has quit [Ping timeout: 245 seconds]
<InPhase> paste?
<othx> paste is https://www.3dcustomizer.net/paste for .scad files, https://bpa.st for text, https://pasteboard.co/ or https://imgur.com/ for images
<Purzel> OK, I've the following scad-file: https://www.thingiverse.com/thing:4864525
<othx> Purzel linked to "Customizable Light Up LED Text Sign by MattInDetroit" on thingiverse => 2 IRC mentions
<Purzel> What I need, is a code to get an inlay for the letters to diffuse the LED-lights.
<Purzel> I have absolutely no idea of coding.
mmu_man has joined #openscad
<Purzel> I know that I can write some things into the editor, but that's it.
<Purzel> If you have a look at the code there are the possibilities to choose between a "bottom_container", a "top_lid", which are the lower and upper pieces of a letter.
<Purzel> In my mind I think the "lid" has to be substracted from the "container" to ghet an inlay...
<InPhase> tutorial?
<othx> tutorial is The OpenSCAD tutorial is a great place to learn how to create designs in OpenSCAD, and can be found at: https://en.wikibooks.org/wiki/OpenSCAD_Tutorial
<InPhase> Purzel: ^ That link is an excellent starting point to get comfortable with the syntax. It's pretty straightforward to pick up, even with no programming background.
<Purzel> I've got no time and sense for coding.
<Purzel> Never did this, never will learn. to complex.
<Purzel> type="top_lid"; //[bottom_container,top_lid,both,upright]
<Purzel> /Set the text to render, recommend to use all capitals
<Purzel> textstring="A";
<Purzel> /Font name. In the list is first a selection of bold fonts. After the dashed line you get a list of thinner fonts, which are not really recommended.
<Purzel> FontName="Bangers"; //[Poiret One,Arial,Bangers]
<Purzel> /Font style - but it might be your desired style is not available for the selected font. Just try it and see.
<Purzel> textstyle="Regular";//[Regular,Bold,Italic,Bold Italic,Narrow,ExtraBold,Black,Light,Thin,Medium Italic, SemiBold,Condensed,Expanded,Oblique]
<Purzel> / Spacing, default: 1. tweak to get letters closer, or just adjust the bubble size.
<Purzel> Spacing = 1;
<Purzel> /Set font size in mm
<Purzel> textsize=150;
<Purzel> /Text height (extrusion) in mm
<Purzel> textheight=30;
<Purzel> /bubble radius. Increase until the letters flow together on the interior of the case, and interior high peaks are reduced.
<Purzel> bubble=1;
<Purzel> /Rim thickness and height of the cover lid. Also affects the shell thickness. This should be split into a seperate variable.
<Purzel> wall=2;
<Purzel> /Lid wiggle so it fits
<Purzel> /keyhole slot diameter (mm)
<Purzel> keyhole_slot=4.20;
<Purzel> /keyhole head depth (mm) At this point just needs to be deep enough to penetrate the lower shell.
<Purzel> keyhole_headdepth = 6;
<Purzel> /keyhole slot length (mm)
<Purzel> keyhole_slot_length=15;
<Purzel> /keyhole height adjustment (mm) Closer or further from the top of the sign.
<Purzel> keyhole_height_adjust=-5;
<Purzel> /Quality. Higher number makes for smoother curves for the letters, but also slows down preview and rendering.
<Purzel> $fn = 28;  //14, 28, 56
<Purzel> /-------------------------------------------------------------------------------
<Purzel> roundfaces=8*round_faces;
<Purzel> /fontname=str(FontName,":style=",textstyle);
<Purzel> fontname=str(FontName,":style=",textstyle,":spacing=",Spacing);
<Purzel> Modified May 2021
<Purzel> By M Starrman
<Purzel> Modified to scale up, minimize top letter layers so LED light can shine thru better, and hang on wall
<Purzel> Original Description:
<Purzel> Rounded Text Box
<Purzel> Version G, August 2018
<Purzel>     height_of_cutoff_quarter=radius_original*sin(angle);
<Purzel>     //echo(radius_original,height_of_cutoff_quarter);
<Purzel>     scalingheight=radius_original/height_of_cutoff_quarter;
<Purzel>  radius=radius_original;//*scalingheight;
<Purzel>     // 2) we shift the quarter towards -x to cutoff the flat part until the right angle is met
<Purzel>     shiftx=radius*cos(angle);
<Purzel>     //echo (shiftx);
<Purzel>  scalingwidth=f_scalingwidth(angle);//radius_original/(radius-shiftx);
<Purzel>     //echo(radius_original,radius,shiftx,scalingwidth);
<Purzel>     scale([scalingwidth,scalingwidth,1])
<Purzel>         translate([-shiftx, 0, 0])
<Purzel>             circle(r = radius, $fn = roundfaces);
<Purzel>     //to check the geometry only:
<Purzel>     //#translate([-2*radius_original,-radius_original,0]) square(2*radius_original);
<Purzel>     //quite big, but only good up to 5 degree angle
<Purzel>     translate([-30*radius_original,-15*radius_original,0]) square(30*radius_original);
<Purzel>     translate([-radius_original,-2*radius_original,0]) square(2*radius_original);
<Purzel> }
<Purzel>         linear_extrude(height=textheight,convexity = 32)
<Purzel>             writetext(textstr, textsize);
<Purzel>         halfball(rounding,angle);
<Purzel>     }
<Purzel> }
<Purzel> newcircleradius=f_scalingwidth(angle)*bubble;
<Purzel> newcutoffheight=newcircleradius*sin(angle);
<Purzel> echo("bubble=",bubble,"newcircleradius=",newcircleradius,"newcutoffheight=",newcutoffheight);
<Purzel> module HollowBubbleText(textstr, textsize, bubble, wall,angle)
<Purzel> {
<Purzel>     difference()
<Purzel>     {
<Purzel>         translate([0,0,newcutoffheight])
<Purzel>             BubbleText(textstring,textsize,bubble, angle);
<Purzel>         translate([0,0,wall-.1])
<Purzel>             translate([0,0,newcutoffheight-wall])
<Purzel>                 BubbleText(textstring,textsize,bubble-wall,angle);
<Purzel>     }
<Purzel> }
<Purzel> /CylinderTextNoHoles(textstring, textsize, textheight, bubble);
<Purzel> module HollowCylinderText(textstr, textsize, bubble, thickness)
<Purzel> {
<Purzel>     difference()
<Purzel>     {
<Purzel>         CylinderText(textstring,textsize,textheight,bubble);
<Purzel>         translate([0,0,-1])
<Purzel>             CylinderTextNoHoles(textstring,textsize,textheight+2,bubble-thickness);
<Purzel>     }
<Purzel> }
<Purzel> /HollowCylinderText(textstring, textsize, bubble, thickness) ;
<Purzel> module BubbleTextBottom(textstr, textsize, bubble,angle)
<Purzel> {
<Purzel>     difference()
<Purzel>     {
<Purzel>         //scale([1,1,-1])
<Purzel>         scale([1,1,-base_scale]) //make the base shorter... rather than trying to design a shorter base
<Purzel>                             HollowBubbleText(textstr, textsize, bubble, wall, angle);
<Purzel>                         translate([-dummy_cutoutlen/2,-dummy_cutoutlen/2,0])
<Purzel>                             color("white") //cutting off the bottom, to make room for rim
<Purzel>                                 cube([dummy_cutoutlen,2*dummy_cutoutlen,textheight+newcutoffheight]);
<Purzel>                     } //end of difference
<Purzel>                     //cover lip to fit onto the storage box
<Purzel>                     intersection()
<Purzel>                     {
<Purzel>                         translate([0,0,newcutoffheight+textheight])
<Purzel>                         {
<Purzel>                             color("purple") //letter shell under the first two layers. under the blue part. directly above the rim
<Purzel>                                 HollowCylinderText(textstr, textsize, bubble, lidWidth+lidIn) ;
<Purzel>                             translate([0,0,-liplength])
<Purzel>                                 color("red")  //lower most letter shell, the actual rim
<Purzel>                                     HollowCylinderText(textstr, textsize, bubble-lidIn, lidWidth) ;
<Purzel>                         }
<Purzel>                         //intersect with generic shape - makes the rounded lower/outer edge.
<Purzel>                         translate([0,0,newcutoffheight])
<Purzel>     translate([keyhole_spacing_right,textsize-keyhole_slot_length-keyhole_head+keyhole_height_adjust,0])
<Purzel>         keyhole();
<Purzel> }
<Purzel> /[bottom_container,top_lid,both]
<Purzel> if (type=="bottom_container" || type=="both")
<Purzel> {
<Purzel>     difference() {
<Purzel>         BubbleTextBottom(textstring, textsize, bubble,angle);
<Purzel>         if (keyhole_boolean) {
<Purzel>             color("black")
<Purzel>             keyholes();
<Purzel>         }
<Purzel>     }
<Purzel> }
<Purzel> if (type=="top_lid" || type=="both")
<Purzel>     translate([0, ( type=="both" ? textsize*1.5+2*bubble+5 : 0 ) ,0])
<Purzel>         BubbleTextTopFlipped(textstring, textsize, bubble,angle);
<Purzel> if (type=="upright")
Purzel has quit [Quit: Client closed]
Purzel has joined #openscad
<teepee> ouchies
<Purzel> pasted the code, freezes
<teepee> yes, that does not work with good old IRC
<teepee> either link to the original if that's posted somewhere (e.g. thingiverse)
<Purzel> can I just add my scad-file
<teepee> or use one of those paste services and give that link
<teepee> InPhase linked those earlier
<teepee> paste?
<othx> paste is https://www.3dcustomizer.net/paste for .scad files, https://bpa.st for text, https://pasteboard.co/ or https://imgur.com/ for images
<Purzel> I hope this is the link to my code
<teepee> yes, it is
<teepee> huge letter A
<Purzel> just decreasing the fontsize does not work.
<Purzel> I need an inlay, which is just that smaller, that the walls of the letters are.
<Purzel> The size of the "top_lid" without the walls of the "bottom-container".
<Purzel> Any chance to subtract them somehow...?
<Purzel> Thanks in advance!
<teepee> see that the "Customizer" window is enabled
<teepee> this should show the option to either generate the lid or the container
<teepee> I would assume that already attributes for the sizing to fit the lid into the container
<Purzel> nope, the lid fits exactly on top of the container, but I want it fitting inside, so I have a diffused layer inside to avoid bright light-spots from the LEDs
<Purzel> no matter what I change there, the lid will not be cutted of at each side to fit inside
<Purzel> the keyhole-parts are only holes for nailing the letters to a wall
Guest49 has joined #openscad
Guest49 has quit [Client Quit]
<teepee> looks like it's using the container setting to cut out a bit from the lid
<teepee> flipping that around may need a bit more time to understand how it's build
<Purzel> hm...
<Purzel> thats what I'm saying...
<Purzel> Do you have an idea?
lkcl has quit [Quit: BNC by #bnc4you]
lkcl has joined #openscad
<teepee> general idea, sure. but not really the time to look into this
Purzel has quit [Quit: Client closed]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
Guest32 has joined #openscad
Guest32 has quit [Client Quit]
Guest32 has joined #openscad
Guest32 has quit [Client Quit]
TheAssassin has quit [Ping timeout: 240 seconds]
TheAssassin has joined #openscad
mmu_man has quit [Ping timeout: 246 seconds]
J23 has quit [Remote host closed the connection]
J23 has joined #openscad
snaked has joined #openscad
snaked has quit [Quit: Leaving]
mmu_man has joined #openscad
snaked has joined #openscad
snaked has quit [Quit: Leaving]
peeps[work] has quit [Ping timeout: 246 seconds]
snaked has joined #openscad