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