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
<Marcin13> Probably just a refactoring artefact. I changed it to thickness since we started chatting
<Marcin13> Currently I'm exploring tail recursion, there definitely is some optimizaiton for that. I manaaged to rewrite the module into a function
<bitbasher> ok .. so .. the goal of this is to fill in a diamond shape?
<Marcin13> Not completely, but I wanted to have plenty of bends and small holes
<bitbasher> scad sees where tail recursion can happen and sort of does it for you
<bitbasher> but .. for the moment i need to sleep
<Marcin13> By the way. I rerote the module into a function and there definitely is tail call optimization. But it's tricky. For example first one does not work, while second does.
<Marcin13>   i == l-1 ? [position + pc, angle + ac] : xya(list, l, i+1, position + pc, angle + ac)
<Marcin13>   i < l-1 ? xya(list, l, i+1, position + pc, angle + ac) : [position + pc, angle + ac]
<Marcin13> even thoug hthey are sentially the same
<bitbasher> is that condition i == L-1 ?
<Marcin13> yea
teepee_ has joined #openscad
<bitbasher> i think it might be the i+1 in the arg list fot xya() .. maybe
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
<bitbasher> i generally catch the last recursion doing i == 0 ? [] :doItDeeper( i-1 ); to count down
<bitbasher> Marcin .. do u mind if i give that code as an example in the docs?
<Marcin13> I usually do down recursion as well, but in this case I honest to god couldn't figure out how :D
<bitbasher> have a look at Jordan's example using objects https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Example/HelloThere
<bitbasher> well .. maybe call draw( list, len( list ), etc etc)
<bitbasher> it is a fully symmetrical model so going backwards from the end should work no?
<bitbasher> now .. zzzz .. good night
<Marcin13> Yes, logically this should be reversible but it's not that simple
bitbasher has quit [Quit: ~ Trillian - www.trillian.im ~]
<Marcin13> Instructions are for example anologous to:
<Marcin13> 1. Start at 0,0 and 0 angle
<Marcin13> 2. Move foreward L
<Marcin13> 3. Turn Left
<Marcin13> 4. Move forward L
<Marcin13> so following them in order is simpler, going backwards you'd have to basically know at thwat angle oyu end, and then insteaad of turning left you tyurn right
Marcin13 has quit [Ping timeout: 252 seconds]
snaked has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
J25k10 has joined #openscad
J25k has quit [Ping timeout: 252 seconds]
ccox_ has quit [Ping timeout: 276 seconds]
hyperair has quit [Ping timeout: 248 seconds]
sculptor_ has quit [Changing host]
sculptor_ has joined #openscad
ccox has joined #openscad
sculptor_ has quit [Ping timeout: 260 seconds]
peepsalot has joined #openscad
peeps[zen] has quit [Ping timeout: 276 seconds]
hyperair has joined #openscad
<gbruno> [github] caufang opened issue #6060 (3MF export "Color" vs "Base Material") https://github.com/openscad/openscad/issues/6060
snaked has quit [Quit: Leaving]
hyperair has quit [Ping timeout: 240 seconds]
<gbruno> [github] gsohler opened pull request #6061 (In-App Help is misleading) https://github.com/openscad/openscad/pull/6061
<gbruno> [github] gsohler pushed 1 modifications (In-App Help is misleading Dont need it often, but Help was not helping intially) https://github.com/openscad/openscad/commit/eefaefb2eaa6a45e79ff5cc932e17b375dcc38fb
guso78k has joined #openscad
hyperair has joined #openscad
hyperair has quit [Ping timeout: 240 seconds]
bitbasher has joined #openscad
bitbasher has quit [Changing host]
bitbasher has joined #openscad
hyperair has joined #openscad
howiemnt4 has joined #openscad
howiemnt1 has quit [Read error: Connection reset by peer]
mmu_man has joined #openscad
Marcin50 has joined #openscad
sculptor has joined #openscad
Marcin50 has quit [Ping timeout: 252 seconds]
bitbasher has quit [Ping timeout: 252 seconds]
Marcin12 has joined #openscad
<Marcin12> Hello everyone! I wanted to thank @bitbasher and @teepee for help yesterday. Here's the result of my effort and your help. A fractal fly swatter: https://cdn.imgchest.com/files/7ogcbw8qqzy.webp
<InPhase> Marcin12: Congrats! I... honestly do not think that is going to work well as a fly swatter. But it's a mathematically nice looking pattern. :)
<Marcin12> I have my doubts as well haha. It definitely needs some rebalancing (lighter head, while stronger base). But I did test it against one fly and while it did indeed escape, the tool survived :D
<Marcin12> So at least there's that haha
<InPhase> Marcin12: That has two problems that make me question the mechanical engineering aspects. The components have independent flex, so if you smack flies they can end up distorted over time and taking away your flat fly smacking surface. Also the handle connecting the swatting bit has no thicker bit, so it's probably going to snap clear off right around where it connects.
<InPhase> And I guess third, most fly swatters are a slight majority or close to 50% open space, with a tighter weave strengthened by interconnections (the opposite of that pattern).
<Marcin12> It's definitely more of a "looks cool" than practical thing. At least for now, I'll think about reinforcing it.
<Marcin12> Obvious points would be to make the tail thicker, second would be to add a frame around the head.
<Marcin12> As you say the neck of it is probably where it'll snap
LordOfBikes has joined #openscad
LordOfBikes has quit [Ping timeout: 248 seconds]
sculptor_ has joined #openscad
sculptor_ has quit [Changing host]
sculptor_ has joined #openscad
sculptor has quit [Ping timeout: 245 seconds]
LordOfBikes has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
<gbruno> [github] dan-p3rry opened issue #6062 (OpenSCAD crashes on 3mf export of simple model, STL export is fine for the same part) https://github.com/openscad/openscad/issues/6062
sculptor_ is now known as sculptor
<gbruno> [github] t-paul closed pull request #6061 (In-App Help is misleading) https://github.com/openscad/openscad/pull/6061
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #6061 from openscad/gsohler-patch-6 In-App Help is misleading) https://github.com/openscad/openscad/commit/c008fd7d8ffd00406377df638ff5003b5e6ac641
howiemnt has joined #openscad
howiemnt4 has quit [Ping timeout: 248 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
<gbruno> [github] t-paul closed pull request #6051 (#6048 Bad output converting object to string) https://github.com/openscad/openscad/pull/6051
<gbruno> [github] t-paul pushed 3 modifications (Merge pull request #6051 from pkriens/bug/6048-Bad_output_converting_object_to_string #6048 Bad output converting object to string) https://github.com/openscad/openscad/commit/ee3db834fd62dbc758615b419994e4e4ed00ee44
<gbruno> [github] t-paul closed issue #6048 (Bad output converting object to string) https://github.com/openscad/openscad/issues/6048
Marcin12 has quit [Ping timeout: 252 seconds]
LordOfBikes has quit [Read error: Connection reset by peer]
sculptor has quit [Remote host closed the connection]
LordOfBikes has joined #openscad
LordOfBikes has quit [Read error: Connection reset by peer]
LordOfBikes has joined #openscad
LordOfBikes has quit [Read error: Connection reset by peer]
<gbruno> [github] t-paul pushed 15 modifications (Update translation template and language files.) https://github.com/openscad/openscad/commit/892f1f767d6107250f0673d630a8922f5f513409
<gbruno> [github] t-paul opened pull request #6063 (Update translations) https://github.com/openscad/openscad/pull/6063
<gbruno> [github] t-paul closed pull request #5423 (Italian localization, contributed via email.) https://github.com/openscad/openscad/pull/5423
Marcin77 has joined #openscad
LordOfBikes has joined #openscad
Marcin77 has quit [Ping timeout: 252 seconds]
<gbruno> [github] t-paul closed pull request #6063 (Update translations) https://github.com/openscad/openscad/pull/6063
<gbruno> [github] t-paul pushed 1 additions 17 modifications (Merge pull request #6063 from openscad/update-translations Update translations) https://github.com/openscad/openscad/commit/62de4ddd86c1eee598de0075b2295160c8ab0bed
guso78k has quit [Quit: Client closed]
<gbruno> [github] t-paul pushed 70 additions 9 modifications (Merge pull request #6057 from AaronVerDow/svg_export2 Add SVG export options for fill and stroke.) https://github.com/openscad/openscad/commit/00e3d64c59de5e4f58c8abcec0a0731f3eb27555
<gbruno> [github] t-paul closed pull request #6057 (add SVG export options for fill and stroke) https://github.com/openscad/openscad/pull/6057
sculptor has joined #openscad
sculptor has quit [Changing host]
sculptor has joined #openscad
little_blossom has quit [Ping timeout: 248 seconds]
LordOfBikes has quit [Read error: Connection reset by peer]
LordOfBikes has joined #openscad
little_blossom has joined #openscad
<gbruno> [github] t-paul closed pull request #5874 (User-specified mouse behaviour in 3D navigation) https://github.com/openscad/openscad/pull/5874
<gbruno> [github] t-paul pushed 4 additions 10 modifications (Merge pull request #5874 from harrybraviner/mouse_styles User-specified mouse behaviour in 3D navigation.) https://github.com/openscad/openscad/commit/0af94f3757efe54695c181ac6b967818495436a6
bitbasher has joined #openscad
LordOfBikes has quit [Read error: Connection reset by peer]
LordOfBikes has joined #openscad