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
marcus has quit [Remote host closed the connection]
marcus has joined #openscad
Lagopus` has quit [Ping timeout: 246 seconds]
Andy-pants has joined #openscad
teepee_ has joined #openscad
<JordanBrown[m]> https://github.com/jordanbrown0/Train/blob/main/Train.scad is a program that uses some of the 4478 features.
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
Andy-pants has quit [Ping timeout: 255 seconds]
Andy-pants has joined #openscad
Andy-pants has quit [Ping timeout: 255 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
califax has quit [Remote host closed the connection]
Andy-pants has joined #openscad
califax has joined #openscad
qeed_ has quit [Quit: qeed_]
qeed has joined #openscad
Andy-pants has quit [Remote host closed the connection]
Andy-pants has joined #openscad
hyperair has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 255 seconds]
hyperair has joined #openscad
linext_ has quit [Read error: Connection reset by peer]
linext_ has joined #openscad
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
ali1234 has joined #openscad
ali12341 has quit [Remote host closed the connection]
ur5us has joined #openscad
Andy-pants has quit [Ping timeout: 264 seconds]
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
pbsds has joined #openscad
J236886 has joined #openscad
J2368 has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 252 seconds]
califax has quit [Remote host closed the connection]
califax has joined #openscad
<sinned6915> gimzmoe: what module are you using?
<sinned6915> InPhase: have you played around with closure caps / necks at all?
<sinned6915> continuous thread closures
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
la1yv has quit [Ping timeout: 246 seconds]
guso78 has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
castaway has joined #openscad
<gbruno> [github] kakila opened issue #4534 (fs::is_directory fails in nigthly v) https://github.com/openscad/openscad/issues/4534
<gbruno> [github] kakila edited issue #4534 (fs::is_directory fails in nigthly v) https://github.com/openscad/openscad/issues/4534
Petar has joined #openscad
<Petar> hello
<Petar> I'm trying to follow this tutorial here:
<Petar> the way I have modified the code looks like so:
<Petar> import("/Users/petarivcec/Desktop/art/king of sun/1.stl");
<Petar>  z_min = 0;
<Petar>  z_max = 100;
<Petar>  x_max = 50;
<Petar>  y_max = 55;
<Petar>  slice = 1;
<Petar>  n = floor(sqrt((z_max - z_min)/slice)+1);
<Petar>  for(z = [-z_max:slice:z_min]) {
<Petar>    i = (z + z_max) / slice;
<Petar>    x = x_max * (i % n);
<Petar>    y = Y_max * floor(i / n);
<Petar>    translate([x,y,0]) {
<Petar>        projection(cut=true)
<Petar>            translate([0,0,z]) thing();
<Petar>    };
<Petar>  };
<Petar> rendering gives me following error:
<Petar> WARNING: Ignoring unknown module 'thing' in file , line 16
<Petar> I guess that I just need to figure out how to run the loop on the file that I have imported instead of non-existent thing module
<Petar> sorry if this is considered flooding the channel
<Petar> I just wanted to be sure to ask informed question as not to annoy people in that way
<Scopeuk> looking at your code you've not defined "thing" the turorial looks to be in error
<Scopeuk> you could either change "thing()" to your import statement or wrap the input in a module
<Scopeuk> generally for large text paste we would recommend the use of a paste bin
<guso78> no the example DOES define thing. its just in another code section
<Scopeuk> there are two examples on that page, the first is complete, the second is not
Petar has quit [Quit: Client closed]
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
hisacro has quit [Ping timeout: 268 seconds]
califax_ has joined #openscad
califax has quit [Ping timeout: 255 seconds]
califax_ is now known as califax
fling_ has joined #openscad
TheAssassin has quit [Ping timeout: 255 seconds]
teepee has quit [Ping timeout: 255 seconds]
fling has quit [Ping timeout: 255 seconds]
TheAssassin has joined #openscad
teepee has joined #openscad
hisacro has joined #openscad
epony has quit [*.net *.split]
Av8r has quit [*.net *.split]
JakeSays has quit [*.net *.split]
crazy_imp has quit [*.net *.split]
leptonix_ has quit [*.net *.split]
rawgreaze has quit [*.net *.split]
Alexer-_ has quit [*.net *.split]
SamantazFox has quit [*.net *.split]
rvt has quit [*.net *.split]
rapha has quit [*.net *.split]
RoyK has quit [*.net *.split]
t4nk_freenode has quit [*.net *.split]
cbmuser has quit [*.net *.split]
fling_ is now known as fling
epony has joined #openscad
leptonix_ has joined #openscad
JakeSays has joined #openscad
t4nk_freenode has joined #openscad
rapha has joined #openscad
SamantazFox has joined #openscad
RoyK has joined #openscad
rawgreaze has joined #openscad
Alexer-_ has joined #openscad
crazy_imp has joined #openscad
Av8r has joined #openscad
rvt has joined #openscad
cbmuser has joined #openscad
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
epony has quit [Max SendQ exceeded]
SamantazFox has quit [Remote host closed the connection]
SamantazFox has joined #openscad
epony has joined #openscad
snaked has quit [Quit: Leaving]
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
guso78 has quit [Quit: Client closed]
epony has quit [Remote host closed the connection]
<InPhase> sinned6915: Closure captures in OpenSCAD? Sure. Not sure what a "closure neck" is supposed to be.
Andy-pants has joined #openscad
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
Andy-pants has quit [Ping timeout: 255 seconds]
Andy-pants has joined #openscad
epony has joined #openscad
<gimzmoe> I've had a printer for about a year, didn't start building my own models till last month when I stumbled on someone's .scad for a gear I wanted to modify. Been quite hooked on it since, I especially like being able to design compound things that are parametrically dynamic. All that geometry finally becomes useful :)
<buZz> its so great :)
<buZz> i learned openscad during initial calibration of my first printer build :P
<buZz> needed to wait for a part so decided to learn to model a better testprint than a 20mm cube
<gimzmoe> I'm mentoring a robotics team, we needed some gears by finding your specific need on thingiverse is rare in this case. I did find a similar project that included a .scad
guerd871 has joined #openscad
guerd87 has quit [Read error: Connection reset by peer]
<buZz> :)
<gimzmoe> Oh that reminds me is there a way to automatically creates individual stls or do you just suppress the others manually?
<buZz> there's nearly endless gear libraries made for openscad nowadays
<buZz> gimzmoe: not from the gui, really
<buZz> i'm not sure if you could set openscad variables from commandline? if so you could do it with a Makefile
<buZz> i usually just plonk a lot of if (0) {} around my code ;)
<gimzmoe> I haven't even thought about cmdline fun
<gimzmoe> What does that syntax do?
<buZz> if (0) {} is always false
<buZz> it's like commenting out code
<buZz> you could use variables, if (renderthispart) {} etc
<gimzmoe> If be used the *
<gimzmoe> I have used the *
<buZz> the * ?
<gimzmoe> Putting *union()...
<buZz> oh, like that, right
<buZz> there's also % and ! i think
<buZz> hmm
<buZz> but sometimes those */%/! act different between F5 and F6 render
<gimzmoe> Yeah, still learning, probably doing many sins
<buZz> sin() :P
<buZz> ah, you -can- set openscad vars from commandline
<buZz> with -D
<Scopeuk> that's been done, I've also been known to create shell files which include the file with the main model and then instantiate only the module I'm interested in
<gimzmoe> I will have to look into that, might be a way to generate the parts in parallel
<Scopeuk> http://scopeuk.mypicture.info/gitweb/?p=NerfTurret;a=blob;f=tiltPlateLeft.scad;h=66f5220ee0dea56fdad4de8c375bcfbf4ca7f369;hb=HEAD does this, it's a bit clumsy but it works, also ignore anything else in that model it is old and terribly badly put together, it was bodged to get it working in short order
<buZz> gimzmoe: yeah totally , Makefiles can be parallellized (is that a word? :D) with
<buZz> make -j4 for instance
<buZz> i wonder how short you can get a single makefile for making multiple openscad parts
<buZz> yeah i ment from a single .scad file
<buZz> which we were talking about :P
<Scopeuk> most of those scad files are dummies with one part from a larger model
<buZz> yeah figured
<buZz> i just design multiple parts in a single .scad
<Scopeuk> the parts are in one, those include the one and then instantiate and instance of the module
<buZz> normally i use if (0) {} to disable parts of it while rendering out , but with makefile and -D var=bla i could do it from cli with just a single command
<buZz> without dummy files
<buZz> sounds like a nice workflow, i'll try it soonish
<Scopeuk> I think there is a wiki example
<buZz> thats for 1 .scad per .stl
<buZz> oh, no its not
<buZz> > As the convention from the last example is to create the .stl files from .scad files of the same base name, for each of these files, an .scad file must be generated.
<buZz> oh yes it is :(
Andy-pants has quit [Ping timeout: 252 seconds]
<Scopeuk> it should be fairly easy to change the names around, there is an example somewhere that does a switch using children
<buZz> -o /tmp/bla.stl -D object=gear1
<buZz> and then mv /tmp/bla.stl ./gear1.stl
<Scopeuk> it should be possible to tell make that "-o $@.stl -D object=$@ master.scad" is the recipe to make the stl. not tried in a while. I think that target script fudges it by generating and intermediate scad file
<buZz> which target script?
<Scopeuk> the "automatic targets" script above, it creates a scad file with use <master>\r\n module();
<Scopeuk> for each stl
<buZz> ah yeah i dont know if i like that, its not needed with -D var=bla
<Scopeuk> I think it is setup so you put a code comment in to mark the things that should be exported with no other change to it, but -D would let you work around it
<Scopeuk> I guess bonus points if you set -D item=0 output a count of items to export I guess
<Scopeuk> all fun and games
<buZz> to render a .stl multiple times?
<buZz> or like a single .stl with multiple objects inside?
<Scopeuk> single scad file, have it print with echo the count if you run with item=0, then you can just loop over it to get all your stl's out, wouldn't do names though
<buZz> oh like that
<buZz> maybe item=list , and have it output all the objectnames
Andy-pants has joined #openscad
<Scopeuk> the advantage of the method I linked is it can "automatically" find the module names for the stl. plenty of ways and means I guess
<buZz> hmhm
Andy-pants has quit [Ping timeout: 268 seconds]
Andy-pants has joined #openscad
<Scopeuk> it would be nice to get some more export support backed into openscad, we have bug reports for it but it's not decided yet
<lf94> Well, I have git cloned openscad
<lf94> The first step to adding libfive to it
<gimzmoe> I have some free time coming up, I'll have to play with auto-stl automation
<lf94> Unfortunately I've got to do my day job but just the clone has made my little neurons fire joyfully
<Scopeuk> I think the main discussion around it was how to mark it up in syntax, although I guess dump all modules to stl would be a start
<lf94> InPhase: (or other OpenSCADers) have you ever been approached to do code CAD stuff for money
<lf94> My guess is no
<lf94> I'm hoping to be wrong though lmao
<buZz> i've done some openscad for money, why?
<buZz> they didnt really care about openscad, just about a printed item in the end
<teepee> export support?
<buZz> teepee: this discussion started with a question from gimzmoe on how to get multiple .stl out of a single .scad 'automatically'
<buZz> so for multiple parts of a design
<teepee> ah, i see
kintel has joined #openscad
Petar has joined #openscad
<buZz> which made my mind go to 'how short could i make a makefile which uses -D var=bla for rendering different parts'
<buZz> :)
qeed_ has joined #openscad
qeed has quit [Ping timeout: 255 seconds]
<teepee> what is decided would be that there's not going to be an export() function or module
<teepee> but instead some sort of declaration of parts
<Petar> I'm trying to define an import in a module and then run a loop on it for exporting layers as svg:
<Petar> getting a lot of errors such as:
<Petar> WARNING: Ignoring unknown variable 'Y_max' in file , line 17
<Petar> WARNING: undefined operation (undefined * number) in file , line 17
<Petar> WARNING: Unable to convert translate([0, undef, 0]) parameter to a vec3 or vec2 of numbers in file , line 18
<Petar> WARNING: Ignoring unknown variable 'Y_max' in file , line 17
<Petar> WARNING: undefined operation (undefined * number) in file , line 17
<Petar> have put import statement within loop and seems to be running now
<buZz> teepee: i was thinking -D item=list , and have it just 'echo' a list of objects to the Makefile
<buZz> and then iterate over them and do -D item=item1 -o item1.stl
<buZz> or something like that
<Andy-pants> Petar, variable names are case sensitive. You have `y_max` defined at line 10, but you're referencing `Y_max` at line 17. The rest of the warnings stem from that root cause.
<Petar> oh, I see
<Andy-pants> So, you need to change `Y_max` at line 17 to `y_max`
<Petar> the dangers of blindly copy pasting
<Petar> thanks
<Andy-pants> NP!
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<teepee> yes, that's what I use for generating the SVG icons for example https://github.com/openscad/openscad/blob/master/scripts/generate-svg-icons.sh
<JordanBrown[m]> gimzmoe: buZz I have a library that is rigged to cooperate with a shell script to generate multiple STLs or PNGs, and also allows interactive selection using the customizer.
Petar has quit [Quit: Client closed]
<buZz> JordanBrown[m]: public?
<buZz> teepee: ah yes exactly! -Dlist_icons=true
<buZz> :)
<buZz> this is great
<JordanBrown[m]> I am happy to give it out but am not in a position right now to do it.
<buZz> np JordanBrown[m] , any time you feel like it
<InPhase> gimzmoe: A very simply model selection demo file: https://bpa.st/LEKIQ
<lf94> nice
<lf94> is that new
<buZz> -D is new, it used to be -d
<lf94> I feel like I had to do something different to achieve this
<lf94> in the past
<buZz> but the functionality was in openscad a while now, at least 4 years
<InPhase> -D has been around for a pretty long time.
<lf94> makes sense, I havent really used it in 4 years lol.
<InPhase> I see it in 15.03
<InPhase> I didn't use the program before then, so I don't have any older executables around.
<teepee> -d is for makefile dependency generation -D is for defining variables
<teepee> according to the manual both are already in 2011.09.30 :)
Andy-pants has quit [Ping timeout: 255 seconds]
<InPhase> Using it to select in-place requires that indirection of a SelectFrom module. You need a spare module to assign children to.
<InPhase> The syntax for children() changed at some point, but I forget which release that was in. But this was also a while ago.
<InPhase> That example actually fails before the 2019 release though because is_undef was missing. :)
<buZz> teepee: oh? that wikidoc i linked says -d prior to 2019
<InPhase> buZz: https://bpa.st/7KRTY
<buZz> oh nevermind, i was blind i guess
<buZz> 2015 already, nice
<InPhase> buZz, lf94: It's worth noting that -D is more flexible in practice than the documented usage: openscad -D'$fa=1; $fs=0.4; cube(10); cylinder(r=6, h=12);' /dev/null -o test.png
<buZz> lol wow
<InPhase> But it's best to not consider that "supported" behavior.
<InPhase> Just in case. ;)
<teepee> true, but that may bite at some point :)
epony has quit [Remote host closed the connection]
Andy-pants has joined #openscad
epony has joined #openscad
<teepee> especially as this could be now "echo <script> | openscad -"
<lf94> nice
foul_owl has quit [Ping timeout: 255 seconds]
<InPhase> Vector calculator mode: openscad -D'echo([4,5]*3);' /dev/null -o - --export-format echo
<teepee> openscad - -o - --export-format echo
<teepee> just type the script and CTRL-D :P
<JordanBrown[m]> Here's that selection lib and script: https://github.com/jordanbrown0/openscad-libs
<InPhase> teepee: Sadly not much of a REPL.
<JordanBrown[m]> selection.scad and rendereach.sh
<JordanBrown[m]> Sorry no examples.
<teepee> yeah, would be nice to add, but maybe not trivial
<lf94> "openscad is safe" "ok friends just do `openscad -D ... --exportformat echo | sh`
<InPhase> teepee: Well... echo 'echo(a+5); a=7;' | openscad - -o - --export-format echo
<InPhase> teepee: It eats the gui warnings. :)
<lf94> should cut off openscad from scripting
<lf94> too dangerous B)
<teepee> although I'm also thinking a CTRL+ENTER in the editor running current module might be nice too
<teepee> lf94: then you need a program called "ECHO:" in path too
<InPhase> Oh, apparently we don't get warnings for that at the moment. I thought we added those.
<lf94> I'm just being silly
<lf94> something something GO ALL THE WAY BOYS
<JordanBrown[m]> https://www.thingiverse.com/thing:4264614 uses that selection stuff
<JordanBrown[m]> buZz: @gimzmoe:libera.chat https://github.com/jordanbrown0/openscad-libs selection.scad and rendereach.sh
<InPhase> JordanBrown[m]: Now we know why you have a very old computer. All your money has gone into a very nice San Jose area house.
<JordanBrown[m]> Los Angeles
<InPhase> Oh.
<JordanBrown[m]> So not nearly as expensive as SJ
<InPhase> Well then, time for a new computer. ;)
<InPhase> I forgot you were down in that part. You had said that before.
<JordanBrown[m]> I could get one but (a) would need to figure out what (b) current one works ok (c) round tuits.
<JordanBrown[m]> I should say current ones since I have an old desktop and an old laptop :-)
<JordanBrown[m]> I do have a newer laptop that I inherited from my daughter that I use sometimes. It’s the fastest of the three.
Andy-pants has quit [Ping timeout: 255 seconds]
<teepee> I got a new one from the work project I'm on and uff, that's a beast :)
Andy-pants has joined #openscad
<InPhase> JordanBrown[m]: I got my mother a reasonably cheap $500 Acer laptop over Christmas to replace her Windows computer from a few years back, and tossed xubuntu on there, and it turned out to be quite speedy. I'm partial to buying a little higher end myself, but it really doesn't take a lot to beat out the older ones.
Andy-pants has quit [Ping timeout: 252 seconds]
Andy-pants has joined #openscad
varmadatla07 has joined #openscad
Andy-pants has quit [Ping timeout: 252 seconds]
foul_owl has joined #openscad
Andy-pants has joined #openscad
teepee_ has joined #openscad
Andy-pants has quit [Ping timeout: 255 seconds]
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
aiyion1 has quit [Remote host closed the connection]
varmadatla07 has quit [Quit: Client closed]
aiyion1 has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee has joined #openscad
califax has quit [Remote host closed the connection]
califax has joined #openscad
Petar has joined #openscad
Andy-pants has joined #openscad
guso78 has joined #openscad
J236886 has quit [Quit: Client closed]
J236886 has joined #openscad
Andy-pants has quit [Ping timeout: 255 seconds]
<sinned6915> i have had good luck with CDW B-stock
<sinned6915> workstations really
<sinned6915> ie dell precision 3240 SFF, Xenon, 16Gb, 256Gb, ~$450 with 3yr warranty
J236886 has quit [Quit: Client closed]
J236886 has joined #openscad
Petar has quit [Quit: Client closed]
<sinned6915> its like they had a big order that never got deployed, brand new in box. we bought 4 of them
GNUmoon has quit [Ping timeout: 255 seconds]
GNUmoon has joined #openscad
linext has quit [Read error: Connection reset by peer]
peeps[work] has joined #openscad
Andy-pants has joined #openscad
Lagopus has joined #openscad
Andy-pants has quit [Ping timeout: 255 seconds]
peeps[zen] has joined #openscad
peepsalot has quit [Ping timeout: 246 seconds]
<sinned6915> I am working on a screw-on funnel
<sinned6915> I want to make a drop edge on the bottom side
<sinned6915> I was thinking to subract a torus
<sinned6915> but can not decide on the best way to create it-
<sinned6915> rotate extrude or hull?
<sinned6915> any suggestions?
<InPhase> Drop edge?
<InPhase> If the almost profane red sketch on that image was supposed to illustrate, I'm missing a sense for what that shape is actually supposed to look like in 3D.
<sinned6915> sorry, drip edge
<sinned6915> profane? i'm not seeing, but apologies none the less
<sinned6915> the funner is upside down i the pic
<sinned6915> i want a lip so that anything that runs on the vertical surface that might cling to the underside will hit the edge and fall off
ur5us has joined #openscad
<InPhase> Oh. You want water spillage into the threaded area to run down into a sort of moat and run around tangentially to the opening that is facing the camera on that image?
<sinned6915> here is an example of how we use it on masonry
<InPhase> Ah. The image is upside down.
<sinned6915> my bad, yes
<InPhase> So water will flow in through the funnel opening at the bottom.
<sinned6915> yes
<sinned6915> anyhting that wants to return o the flat would hit the 'drip'
guso78 has quit [Ping timeout: 260 seconds]
<InPhase> Then rotate extrude of a circle or a square for this problem.
<sinned6915> no hull?
<InPhase> Probably a square is a stronger choice than a circle.
<sinned6915> hull of a sphere or a cube?
<InPhase> How would a hull help?
<sinned6915> i dont knw, that is why i am asking. I am still trying to master hull
<sinned6915> and where to use it
<InPhase> Rarely if possible.
<InPhase> 2D hull is great, 3D hull should be used sparingly.
<sinned6915> i thought openscad mastery was using hull and minkowsky
<InPhase> lol
<InPhase> Well, I used them a lot when I started, and you can get some pretty results, but they are a great way to shotgun your foot off in performance.
<sinned6915> i feel like this half the time
<sinned6915> sometimes i get a popup with suggested syntax for things, sometimes i dont
use-value has quit [Remote host closed the connection]
<sinned6915> is there a toggle to invoke it?
use-value has joined #openscad
<InPhase> There's an Enable Autocompletion in the editor preferences.
<InPhase> It should reliably pop-up then I think. I don't actually use the built-in editor myself in regular usage.
<InPhase> I've assigned myself to the team of developers who makes sure external editor features keep working right. :)
<sinned6915> InPhase: thank you
<sinned6915> and i think i figured out the autocomplete issue- sometimes when i dbl click a .scad file, my computer opens up 2019.05
<sinned6915> if i start from start menu, it opens 2021.??
Andy-pants has joined #openscad
<J236886> sinned6915  i fear this will not work, create a 5mm lip instead
<sinned6915> you mean a straight cylinder 5mm deep intot he bottle opening?
<J236886> sinned6915  something like this https://imgur.com/a/Jc9xmsN
<sinned6915> that is similar to what i was thinking
<sinned6915> the variability is the bottles are blow molded and the hole varies
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
<sinned6915> and my next step is to somehow put a vent in there
fling has joined #openscad
<J236886> the groove also need to fit the hole or ? .. problem with grooves is that  water / liquid have tension .. so if the groove is only 2mm it will not work
<sinned6915> J236886 how did you make the flare on the inner cone?
<sinned6915> did you revolve a flat, or did you subtract 2 cones
<J236886> the hole thing is just 3 lines with my lib ..  but  it is a rotate extruded polygon
<sinned6915> ok
<sinned6915> i am still trying to master some of those
<sinned6915> i can do pretty good with brining in DXF and revolding and extruding
<sinned6915> it just shows you how much your brain rots having huffed the glue from the ACAD-WIntel coalition
<J236886> try this https://bpa.st/YUGE4
Andy-pants has quit [Ping timeout: 268 seconds]
<J236886> and sure can be better if using polygon(points);  ..  or using some +- offset(1)
<sinned6915> this is what i have been strugling with since lunch time
<sinned6915> the funnel module
<sinned6915> those 3 lines are eye openeers
peeps has joined #openscad
peeps[zen] has quit [Ping timeout: 252 seconds]
<J236886> sinned6915  there is some room for improvements in that code Ü
<sinned6915> the base file was the one for the caps
<sinned6915> i was just trying to graft it onto a funnel
omegatron has joined #openscad
<J236886> the use of the special variables $ is not necessary - i would try not to use them if possible
<sinned6915> ok
<sinned6915> how are you making the section cut to see the cross section?
<sinned6915> are ou dif'g a cube?
<J236886> and instead of the hull of cubes for the thread  .. 2D would be better
<sinned6915> that was originator
<sinned6915> and its all commented in french
<J236886> i have a module that is using 3 different colored cubes as intersections
<sinned6915> ok
<sinned6915> i have 1 cube i use i the diff section
<J236886> have you worked with children(); ?
<sinned6915> not yes, i am still trying to get my head aroudn that one
<J236886> try this https://bpa.st/IYXTM
<J236886> and see what happens when rendering (F6)
<J236886> !tutorial
<J236886> tutorial!
<sinned6915> why is the cylinder actually a cone?
<sinned6915> i thought syntax was cylinder(height, radius);
<J236886> here a simple  polygon .. you will find this very useful (later)  https://bpa.st/5TZIM
<teepee> if you don't give parameter names, you need to give both radius values
<J236886> if using r it is the radius .. else there is r1 and r2 used and only r1 was given so r2 was 1
<sinned6915> i think this is what teepee means- cylinder(h=50, r=5);
<teepee> yes, or cylinder(50, 5, 5)
<teepee> because the positional parameters are h, r1, r2
<sinned6915> but teepee, it was given as cylinder(h,r);
<teepee> which means it's positional, not by name
<teepee> by name means "r = <something>"
<J236886> no  cylinder (h=5, r=5);  would give r   because r1 and r2 are not given
<sinned6915> i am trying to get the popup to come up, it shows only 1 r
<teepee> if you have the value in r, it's r = r
<sinned6915> right, only 1 radius => cylinder
<sinned6915> cylinder(50,5); makes a cone, not a cylinder
<teepee> yes, like I said
<teepee> no names
<teepee> so you give values for h = 50, r1 = 5 and r2 gets default of 1 or 0 (don't know exactly)
<InPhase> J236886: Your https://imgur.com/a/Jc9xmsN design will snap from over tightening.
<InPhase> Well, crunch and crumble, because a circle.
<sinned6915> is there a way to invoke the autocompete popup?
<InPhase> J236886: But basically that's a screw going into an inclined plane giving you great mechanical advantage for breaking the plastic.
<teepee> ctrl+space for autocomplete
<J236886> cylinder(15,undef,undef,true,5);   // the r is at position 5  and after that are the d1 d2 and d
<teepee> . or ( for the info window (I think)
<sinned6915> InPhase: that is why I am trying to shoulder the top of the bottle like a a cap
<teepee> yep, that definition is messed up but unfortunately also not fixable
<sinned6915> teepee- i am not trying to argue
<sinned6915> i am seeing something different on cheat sheet and what you are saying,
<J236886> InPhase this was just a demo code - however it depends on the thickness .. something like this will give a nice sealed fit
<sinned6915> and i tend to lean to your adivce in general
<sinned6915> teepee the autocomplese seems to happen in 2 ways- one is just the command, the other is the command and the variations of options
<J236886> yes this might be confusing in the cheat sheet  as there is only one cylinder or cube
<sinned6915> i cant figure out how to get the options
<teepee> the cheat cheat does not have enough info to clarify all possibilities
<sinned6915> sometimes i get just 'cylinder' and sometimes i get the 3 examples of cylinder options
<J236886> you get the options after the "("
<sinned6915> no, no options
<sinned6915> that is what i was trying o say
<J236886> so when the object is defined   cylinder(
<sinned6915> ah, ok
<sinned6915> i am doing cylinder (
<J236886> you also can change the settings after how many characters you get this
<sinned6915> not cylinder(
<J236886> yes use spaces
* J236886 is lazy
<sinned6915> if you put the space in there, it does not come up
<sinned6915> teepee, i seem to recall the space no/space beinf the difference in vectors space and function definition
<J236886> just noticed that too
<sinned6915> is this still a rule?
<sinned6915> or did we find an easter egg?
<J236886> inPhase  do you use spaces between ?
<J236886> sinned6915 so for the code it doesn't matter if you have spaces but the autocomplete parser feature  will take a space as something new
<sinned6915> yes
<J236886> back to your funnel .. you might consider an air channel  so  the air from the bottle can be replaced with liquid
<J236886> or do you only have single drops
<sinned6915> i was looking at the rotate extrude example of the shepards crook to make a tube
<sinned6915> i am trying to find a file sharing site to upload the continuous closure thread specs
<J236886> there are nice examples build in
<J236886> !paste
<J236886> or https://bpa.st/
<sinned6915> i give up. imgur to the rescue
<sinned6915> oh, no this was a pdf
<sinned6915> i dont know what rights are on it.
<sinned6915> i think its ok to share
<J236886> the source is in the right lower corner  --  should be fine
<J236886> however consider that same threads are not easy to print due to overhang
<sinned6915> true
<J236886> and  the concave sections can't be done with a hull()
<sinned6915> i think that you are correct in that the cap and neck file can be 'optimized'
<J236886> so you either use a library or build your own polyhedron
<sinned6915> but i think the geometry is in the sp400 drawing
<sinned6915> ah, yes, its all open and here- https://www.isbt.com/threadspecs-downloads.asp
<sinned6915> i think i will study InPhases library since I know it the best
<J236886> you just don't have the roundings there
<J236886> https://imgur.com/a/sz2IJd7    is what i use
<sinned6915> yes,
<sinned6915> how did you do that so fast
<sinned6915> i need to back to work/employment tasks
<J236886> it is in my library  as preset
<sinned6915> i will come back later
<sinned6915> i did not know about this
<sinned6915> i am sorry if i offended you- that wasnot my intent
<sinned6915> yikes! there is all storts of good stuff in there.
<sinned6915> thank you for sharinf
<gbruno> [github] mconsidine closed issue #4532 (Help tracking an error) https://github.com/openscad/openscad/issues/4532
<J236886> sinned6915 you finde some nice ones here https://openscad.org/libraries.html
<J236886> and no worry why do you assume you offended me?
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
peeps[work] has quit [Ping timeout: 255 seconds]
lkcl has quit [Ping timeout: 255 seconds]
Av8r has quit [Quit: Connection closed]
lkcl has joined #openscad