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
hyvoid has quit [*.net *.split]
mmu_man has quit [*.net *.split]
hrberg has quit [*.net *.split]
TheCoffeMaker has quit [*.net *.split]
muesli has quit [*.net *.split]
Wolf480pl has quit [*.net *.split]
dTal has quit [*.net *.split]
knielsen has quit [*.net *.split]
ali1234 has quit [*.net *.split]
Scopeuk has quit [*.net *.split]
jonasbits has quit [*.net *.split]
hrberg has joined #openscad
mmu_man has joined #openscad
hyvoid has joined #openscad
Wolf480pl has joined #openscad
TheCoffeMaker has joined #openscad
jonasbits has joined #openscad
Scopeuk has joined #openscad
dTal has joined #openscad
knielsen has joined #openscad
stefanct has quit [Excess Flood]
stefanct has joined #openscad
LordOfBikes has quit [Ping timeout: 258 seconds]
LordOfBikes has joined #openscad
J23k84 has joined #openscad
hyperair has joined #openscad
J23k38 has quit [Ping timeout: 245 seconds]
ali1234 has joined #openscad
zauberfisch has quit [Ping timeout: 252 seconds]
guso78k has quit [Quit: Client closed]
hisacro has quit [Server closed connection]
hisacro has joined #openscad
qeed has joined #openscad
qeed_ has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 258 seconds]
sauce has quit [Ping timeout: 240 seconds]
sauce has joined #openscad
hyperair has quit [Read error: Connection reset by peer]
guso78k has joined #openscad
fling_ has joined #openscad
fling has quit [Ping timeout: 246 seconds]
fling_ is now known as fling
leptonix has quit [Server closed connection]
leptonix has joined #openscad
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
hyvoid has quit [Quit: WeeChat 4.0.4]
guso78k21 has joined #openscad
<guso78k21> where is the place in OpenSCAD source code where the engine use the parameterized customizer values  instead of numbers included in the source code ?
guso78k has quit [Quit: Client closed]
<teepee> guso78k21: that is the applyParameters() call I linked. actual setting in AST is core/customizer/ParameterObject::apply()
guso78k21 has quit [Quit: Client closed]
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
mohnish has quit [Ping timeout: 246 seconds]
mohnish has joined #openscad
mmu_man has joined #openscad
guso78k has joined #openscad
<guso78k> This is magic code: setParameters copies Assignments to UI form and applyPararameter copies back to Assignments. Still the user has enough time to alter the values.
<guso78k> Not sure if this concept works for me as python is not interested in the Assignments.
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
pie_ has quit []
rogeliodh has quit [Quit: The Lounge - https://thelounge.chat]
rogeliodh has joined #openscad
tcurdt- has quit [Server closed connection]
tcurdt has joined #openscad
pie_ has joined #openscad
mmu_man has quit [Ping timeout: 240 seconds]
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
mmu_man has joined #openscad
guso78k has quit [Quit: Client closed]
erectus has quit [Ping timeout: 246 seconds]
erectus has joined #openscad
guso78k has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
Guest14 has joined #openscad
Guest14 has quit [Client Quit]
mmu_man has joined #openscad
invultri has joined #openscad
invultri has quit [Client Quit]
invultri has joined #openscad
<invultri> I am trying to learn to think functionally, is there anyone who is more used to this and could give some pointers on how to improve: https://gist.github.com/christianvdstap/99a132a33eaec9f12cde78b1c7c2ff7e
<invultri> and with that I mean things like "You probably should have used recursion pattern X here", not the algo stuff itself.
<buZz> wat language even is this?
<invultri> openscad
<buZz> huh
<buZz> function() = stuff ; ??? really?
<teepee> oi!
<invultri> . . . yes
<buZz> it looks like some foreign writing like this :)
<invultri> even function(a) = function(b) a*b;
<teepee> that's even release version :P
<buZz> the ? : if statements dont help readable even :D
<buZz> making it readable*
<teepee> true, we should find something which can be better formatted
<invultri> yer well... the terniaries come with the language I am afraid
<buZz> even intermixed :D
<buZz> > enter=hasInter?[for (i=[0:len(inter)-1]) if (inter[i][2][1]>0) [["i",i],inter[i][2]]]:[],
<invultri> that is the 'if can be used in for'
<buZz> of course if can be used in a for loop :)
<teepee> in for statement yeah, there it's obvious
<teepee> not so much in list comprehension for
<invultri> I think I pretty much use all the trick for the list comprehensions by now, except the recursive generate
<teepee> is there an "each" ?
<buZz> i dont think comprehension means the same thing i think it does :P
<buZz> they dont look legible, anyway
Guest97 has joined #openscad
Guest97 has quit [Client Quit]
<invultri> [for (i=someBooleanVar) if (i) true else false][0] probably works to skip the terniary
<invultri> and yes, many each, those are pretty nice
<invultri> also a foldl and foldr >_>
<invultri> never imagined ever using those in something
<teepee> some sort of "switch" expression would be useful preventing nested ternaries
<invultri> properly layouting ? : ? : on new lines does work
<invultri> line 100 in that gist
<teepee> with lots of time getting used to it, yes, it's almost possible
<invultri> I would like a (a) -> a for inline functions as well. function(a) a will do for now.
<teepee> guso78: those images are waaaay too big for the mailing list :P
<guso78k> sorry, did not meant to write to the mailinig list. william once has written through the mailinig list again and i did not realize.
<guso78k> i meant to write to him directly
<teepee> ah, ok, I'll drop the mail then
<guso78k> please do so
<guso78k> also, with my cheap gmail i cannot delete pictures of the thread from the past
<teepee> oh? normal reply should not include attachments
<invultri> btw, is there already a bug ticket for the editor pain always opening at a default font size and the current font size?
<teepee> I don't remember seeing one
<invultri> pane*
<invultri> btw, is there a setting to set the default font size? I looked... but I could also be nearsighted
<teepee> yes, in editor settings where also the font is configured
<teepee> at least I believe it is
<teepee> and it seems to work fine after restart too
<invultri> yup it does
<teepee> oh, you used the change from menu item, that's not stored by design
<invultri> no, just ctrl-+ on the editor, then open a new file / create new and ctrl+ again, look at first editor
<gbruno> [github] christianvdstap opened issue #4742 (Font sizes unlinked in editor panes) https://github.com/openscad/openscad/issues/4742
guso78k has quit [Ping timeout: 245 seconds]
<teepee> that's what I mean. new editor uses size from the preferences
yogadude has joined #openscad
<invultri> it does and then things are unsynced. Probably a 1line change somewhere.
<teepee> unsynced how?
<teepee> if you locally change the font size, it's changed
<teepee> but that's local to this window
<teepee> and tab
<teepee> I could see syncing tabs in same window
<invultri> for me, I open a file, change the font in that editor pane, then open a new file editor which then gets the configured font size, change the font again. Then on the first tab the font changes as well. But if that was size 8 and I change from new editor from 10 to 8 the old editor is now size 6.
<teepee> right, that's very strange behavior
<invultri> same if you change in the menu btw, that also applies relative to current size in the editor ...
<invultri> (preferences menu)
<teepee> yes, same action as ctrl+/-
<teepee> I'd say changing all tabs but creating in default size is a bug
<invultri> should be either size per tab or all tabs linked always.
<teepee> yep, agreed
<invultri> I guess linked makes sense since we can not set font per tab (or at least I don't know how to set a font per tab)
<teepee> yeah, so it's only the "new tab" case that needs to change
<invultri> if (editor.count>0) useWhatWeHave(); else loadFromConfig(); or somesuch
snaked has quit [Quit: Leaving]
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
<invultri> also the best feature is "stop on warning"
mmu_man has quit [Ping timeout: 240 seconds]
<Lagopus`> is dot indexing limited to .x .y .z ?
<J23k84> .r .g .b .a
<teepee> and swizzling in snapshot version :)
<teepee> echo([1, 2, 3, 4].wzyx);
<Lagopus`> I appreciate the answers, thanks
mmu_man has joined #openscad
muesli has joined #openscad
<invultri> what is this swizzling? I would love a dictionary type of thing (not sure what the creation syntax would be)
<invultri> also, should I file a bug because traces are not complete?
<J23k84> eg. you  have a cube(size,true);  and a square rotated ([90])square(size.xz,true);  or you need size.yz yx zx  whatever
<invultri> I think square takes a single scalar value for the sides
<invultri> https://openscad.org/cheatsheet/index.html <-- handy with all commands to the manual
<J23k84> square can create a rectangle  with  xy   and if you have size=[1,2,3];   you can not use size for a square except you use it as  size.xy  or size.yx if rotated
snaked has joined #openscad
mmu_man has quit [Ping timeout: 240 seconds]
<invultri> square(4) and square([4,8]) both work
muesli has quit [Quit: NO CARRIER]
muesli has joined #openscad
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
mmu_man has joined #openscad
snaked has quit [Remote host closed the connection]
<Joel> I have a cynlinder, when I hit f6, it looks like an octagon, I'm going to 3d print, should I be worried?
<Scopeuk> You likely need to play with $fa and $fs to get it more round if that is. Ritical
<teepee> if it's an octagon, it's tiny, like radius 2mm?
<Joel> teepee slightly more than half an inch, it's for arcade buttons
<teepee> hmm, strange, default is quite coarse but not *that* bad I would have thought
<teepee> anyway, try something like $fa = 4 ; $fs = .4;
<teepee> at the top, that's angle resolution of 4 degrees and segment size 0.4mm
<Joel> cool, will play
<Joel> thanks teepee
<teepee> that's ok-ish. for good FDM printing something like $fa = 2; $fs = 0.2; should be plenty
<teepee> well, unless you also have huuuuuge circular things :)
<Joel> Next silly question (playing with openscad after a long hiatus), I'm making a box, and punching the same hole in two spots, rather than nest in difference, is there a way to maintain a reference to the box, and call each difference separate?
<Joel> the box is drawn by a module currently
<teepee> yes, refactor out the positioning, let me find an example
<teepee> aaaaaaah linext_ :)
<Joel> I'll read up on children() thank you again!
<teepee> or even better 134, this defines the translation to where the buttons are and it's used then for all the things relative to that, like drilling the hole and adding chamfers
<invultri> is there a way to get more precision of numbers with echo ?
<teepee> I don't think so, at least not easily
<invultri> cause I am suspecting that I am having some fun with floats
<teepee> it's safe to always assume that ;-)
snaked has joined #openscad
<invultri> you never know when they kick you in the head
<teepee> yep
<invultri> but... could be an issue with repeated points as well
<linext_> what is up
<linext_> i've been trying to convince thingiverse to turn customizer into a client-side renderer using wasm
<linext_> and pay me for consulting?
<J23k84> as they are now ulitmaker something ..  your chances might be better
<juri_> floats can be tamed.
<juri_> it's just a LOT of work, annd a LOOOOOT of math.
<teepee> linext_: I hope you can convince them
<J23k84> and it would be nice for printables too
<teepee> I was searching on 3dcustomizer.net, clicking on my name and it showed "4 customizers" as text... BUT NO LINKS :P
<Joel> https://gist.github.com/jjshoe/ecb98f5de8b2346b30cc2b26862475a0 - Line 26, this transform doesn't seem to move the buttonHole() at all, what dumb thing am I doing?
<teepee> missing []
<Joel> arg. haha. <3
<J23k84> vector ..
<teepee> I may have done that once or twice
<J23k84> my mind discards the "ton" ..
<J23k84> just playing with command line scripts using prompting for variables .. this is like customizer but better
J23k84 has quit [Quit: Client closed]
J23k84 has joined #openscad
<linext_> printables said no
<linext_> they said they need to spend the money elsewhere
<linext_> i sent this to thingiverse staff: https://ibb.co/1XZhCHx
<linext_> it shows both thingiverse customizer failing and direct compatibility with openscad scripts
<teepee> ouch :)
<J23k84> i often get the impression user like to have 20+ variants rendered instead of using the script
<invultri> gn8
invultri has left #openscad [#openscad]
<Joel> any way to curve the edges of a cube without adjusting the size of the cube?
<J23k84> with a difference
<J23k84> or creating the cube as a hull of 8 spheres
<juri_> or using implicitcad. ;P
<Joel> J23k84 nothing in the cheatsheat for that
<J23k84> using minkowski with a sphere(1)  needs  size-[2,2,2]    -  so if you don't use libraries the answer is no
peeps[win] has quit [Ping timeout: 240 seconds]
<Joel> turns out I can just resize() back to my original size when done w/ minkowski, so not too bad.
<J23k84> resize is slow if used a lot
<J23k84> you could use scale however just substracting a vector for the cube size doesn't seem to be a big issue
<Joel> What do you guys do for 3d printing? I have a box with a lid (that goes on bottom), do you organize parts in separate files, then import all into one to do your editing from? then export each individual file to stl? do slicers help you do this stuff? totally new to 3d printing
teepee_ has joined #openscad
teepee has quit [Ping timeout: 246 seconds]
teepee_ is now known as teepee
<teepee> Joel: I usually do it like in the file I linked, one file with a setting for "assembly" and for the separate parts to print
<teepee> but I don't think there a right or wrong here, more a matter of what works best for you
<gbruno> [github] your-friend-alice opened issue #4743 (offset_extrude()) https://github.com/openscad/openscad/issues/4743
<gbruno> [github] your-friend-alice edited issue #4743 (offset_extrude()) https://github.com/openscad/openscad/issues/4743
<Joel> teepee that's kind of the direction I was heading down
<Joel> I see some trying out prusa slicer it lets you do a bit of rotating, etc. too, which is nice
qeed_ has joined #openscad
qeed has quit [Ping timeout: 245 seconds]
erectus has quit [Remote host closed the connection]
erectus has joined #openscad
mmu_man has quit [Ping timeout: 240 seconds]