<f0lkert>
kintel: found that there's kind of a major problem: polygons in povray can only be 2D. That's why sometimes it renders black spots. So for now we need the triangulate stuff while I'll think of a solution to this.
<f0lkert>
kintel: ok what I now do is for each polygon, convert it into a triangulated mesh2-object. now I only need to see how I can determine the 'normal' for each triangle so to make it into a smooth object.
<gbruno>
[github] kintel edited issue #5445 (macOS 15: The size and position of the window on the screen is not saved for the next time the app opens under macOS 15.1) https://github.com/openscad/openscad/issues/5445
<cart_man>
Anybody maybe have a library for DIN Rails in OpenSCAD?
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
<cart_man>
J24k26: Gheezzz dude. I literally just finished my primitive polygon trace and quite chuffed with it and you slam out this absolute banger! I do not even know where to begin to be thisn good at OpenSCad : /
<teepee>
just do it 10 years daily like J24k26 ;-)
<teepee>
the best approach is to use things and learn along, if it's useful and/or fun enough, you will learn. nobody starts with trying to compete with world best sports people or musitions either
<J24k26>
you also learn some tricks and "best practice" over time ( "i stand on shoulders of giants")
<teepee>
hmm, still unsure what to do about scadvent :-/
<J24k26>
and i used some lazy shortcut for the rounded version - as i am not using my library
<J24k26>
cart_man here a different approach using turtle grafic https://bpa.st/26CA
<J24k26>
teepee maybe this could be scadvent 4× a task and showing 7 approaches how to do it
<J24k26>
6
<teepee>
I like the idea, but difficult to get those so late
<cart_man>
What does the $fs=.5;$fa=1; mean? I always just $fa=200 and get done with it
<J24k26>
InPhase loves code golf
<teepee>
for the late start my idea was weekdays = tutorial, weekend some designs like last years
<teepee>
I know :-)
<J24k26>
cart_man i assume you mean $fn=200.. $fa is the max angle to limit $fs (fragment size)
<teepee>
but there's not even a november 31th, so december probably started somewhere already
<J24k26>
didn't you had something from jordan
<teepee>
yes, there's one from last year on github
<teepee>
well, for first day, maybe a simple tree design is fine and doable on short notice
<teepee>
also I guess if start a bit late, that's also not a huge deal
<teepee>
I'm not so much concerned about first day, but the 23 after that :)
TheCoffeMaker has quit [Remote host closed the connection]
TheCoffeMaker has joined #openscad
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
Guest69 has quit [Ping timeout: 256 seconds]
<dicot>
so uh, I was messing with the recursion example... how do I stop it trying to render?
<InPhase>
dicot: What do you mean by that?
<InPhase>
teepee: So are we doing scadvent? I was sick for much of the last week, so didn't really get started on thinking about it. But I'm recovered.
pie_ has quit []
pie_ has joined #openscad
<InPhase>
Looks like we have 1 design in the repo... So I guess no one else added any yet. :)
<dicot>
I tried to change the stop condition and then pressed the preview button, and now I it won't stop, it's been going for two minutes.
<InPhase>
dicot: Oh. Rendering doesn't really stop in the middle through the gui.
<InPhase>
dicot: A problem yet to be addressed. Probably we could look into how to do this since the upgrade to Manifold. It was a non-starter with CGAL for a long time.
<InPhase>
For Preview, I'm not sure. But I'm confident Preview is going to go away at some point (probably after the upcoming release) and be phased out in favor of Manifold-all-the-things.
<dicot>
:) I'll be careful with recursion then, or upgrade to a CLI, if I read between your lines correctly?
<InPhase>
dicot: I can add that the failure to stop is kind of irrelevant if you use an external editor. :)
<InPhase>
dicot: I usually just terminate OpenSCAD and reopen it, and my file I'm editing stays open.
<InPhase>
And with external editor usage, preview is auto-triggered at save anyway, so you'll never lose progress.
<InPhase>
Although OpenSCAD saves a backup when preview is hit so it's always recoverable.
<InPhase>
Flammable handle holder. How has this not caught on?
<InPhase>
s/handle/candle/
<teepee>
well, people put candles into christmas trees too, which is probably even more dangerous once the trees (and needles!) are dried up
<teepee>
but then todays pieces are led obviously
<InPhase>
Yeah. :) I remember hearing about that going wrong a lot. And remember the era of hot incandescents being a risk. :)
<InPhase>
In my childhood we used to time cutting down a tree so it wasn't too tried out by Christmas so that the big incandescent bulbs wouldn't light it on fire. And we'd never leave the lights on unattended.
<InPhase>
s/tried/dried/
<teepee>
we never had real candles even in my childhood, I do know some people who did that though
<InPhase>
Yeah, that phased out where I was before I was born, as it seemed to go wrong a lot.
<teepee>
real candles were in the pyramids, mostly safe if not left unattended
<InPhase>
We really did no candles at all in the house other than for birthday cakes. The kerosene lamp only came out for power outages. I think I bought my first candles after graduating from college.
TheCoffeMaker has quit [Remote host closed the connection]
<InPhase>
That's a nice tree for the code size.
<teepee>
we mostly used tea lights which are pretty safe when used sensibly
<teepee>
I was looking for a printable one, maybe 3 different sized parts stackable, but that's not really working out yet
<teepee>
maybe that's just not important
<f0lkert>
trying to figure out how to calculate normals. the latest patch uses mesh2 objects as polygons in povray are 2D only I found out. https://www.povray.org/documentation/view/3.70/68/ promises that triangles become smooth when appropriate normals are defined.
TheCoffeMaker has joined #openscad
<teepee>
face or vertex normals?
<teepee>
face normals are just 2 vectors of 3 points multiplied
<teepee>
the STL code might have the code for that
<InPhase>
f0lkert: Looks like it could be in a 1997 era game. :)
<f0lkert>
:)
<teepee>
yep, math teacher called that "PI mal Fensterkreuz", which may translate to something like "PI times fenster cross" and probably does not make too much sense ;-)
<InPhase>
14 probably works a bit better than 15. Room for a star yet. :)
<teepee>
cool, I'm tempted to declare that good enough for day one, so if we think we can get the tutorial sorted on the way, we still may have a scadvent 2024
<teepee>
and J24k26 has a neat idea for next year, but that probably requires a bit of headstart that time
<InPhase>
How would we structure tutorials. Final-result image and guiding comments?
<InPhase>
Animated with steps maybe?
<InPhase>
Maybe code written like 10 steps as: if ($t < 0.05) { .... } else if ($t < 0.15) { ... }
<teepee>
maybe just a normal variable and the image is generated externally as animation
<teepee>
animation directly in openscad is probably not too useful
<InPhase>
So one file, but a step selector variable controlled externally?
<teepee>
unfortunatly too late for the web stuff
<teepee>
yeah, I think one file per day is best as we don't have any new infrastructure, only the web stuff from previous years
<InPhase>
Yeah. I'm trying to think about how to hammer it into the same format. :)
<InPhase>
Also then we can mix and match. It doesn't need to be all tutorial stuff if we don't come up with enough of that.
<teepee>
see that link ^ - 15 tutorials for the week days, filling the other days with other designs
<teepee>
at least right now it sounds doable :-)
<teepee>
famous last words of every time estimation of IT projects
<InPhase>
Yeah. We just have to see what it comes to as divisions once we have to think of real stuff to demonstrate. :)
<InPhase>
I could for example probably think of multiple for math/functions.
<InPhase>
It probably deserves a separate demo for basic math and functions for polygons, for example, versus things like recursive functions which are more involved.
<teepee>
well, week 3 still has 2 open slots in my current list
<InPhase>
Ideas not fully formed in my head yet, but just thinking about how I might break things down.
<teepee>
feel free to mess with that etherpad link, it should be editable
* InPhase
nods.
<teepee>
so maybe I should get the infrastructure up before going to bed
<InPhase>
Primitives and translate/rotate would be hard to do on separate days, as you can't do much with primitives without adding translation and rotation.
<teepee>
but we have the step=1, step=2 so the primitives are always in default place
<InPhase>
But I might leave deciding on those to someone else. My head is drawn to some week 2 stuff.
<teepee>
perfect :-)
<InPhase>
Maybe I could spell out function-design thinking in a stepwise manner. Usually we just plunk the final answer, and people are like "How did you get to this magic??"
<InPhase>
4e-2*(21-i)^2-1e-7*(21-i)^6 for example was like 20 steps in 2 minutes. :)
<InPhase>
Hiding the mental sauce makes it hard to grok.