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.
<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
<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>
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
<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
<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