<guso78>
haha, its actually very similar. i once went through all the PR's but the titles were not expressive so i could realize, that its about textures
<guso78>
my design intent is to be able to define a pattern next to the color(maybe stone, wood, grass, bamboo , metal)
<guso78>
i was inspired by the nice graphs in the goldfeather algorithm and i was wondering, why openscad doesn't do that.
<guso78>
as usual when i have an idea, i want to have the things "now" haha
<guso78>
hmm, i believe its different, my intent is really to use textures. could not see actual textures in your example
<teepee>
that PR is more just a global switch of shaders without language integration
<teepee>
so maybe coming from a slightly different angle, like it could allow nicer global illumination or backgrounds with clouds floating around :)
<guso78>
ahh ok, actually it was not yet my intent to interfere openscad repo .
<guso78>
you know povway ? maybe the openscad in my place can sometime achieve the same scenes.
<teepee>
yes
<teepee>
I probably ran that very slowly on my first PC style computer which was a 386sx@25MHz :)
<guso78>
imagine an island in the middle of the ocean. the island has another stipple than the water and the palm and the air has an opacy of 0.1 maybe ....
<guso78>
openscad could vision that with few lines of code. this is the goal behind my approach
<guso78>
this is why i was interested to the the stipple selector into the glsl program to select from different textures
<guso78>
texture coordinates are solved already. adjacent triangles abut seamless.
<teepee>
ok, now we also have a section for french books :)
<guso78>
teepee, suppose the compilation and code coverage checks run for each push, right ...
<teepee>
yes
ur5us has joined #openscad
guso7860 has joined #openscad
guso7860 has quit [Client Quit]
guso78 has quit [Quit: Client closed]
Guest40 has joined #openscad
<Guest40>
he(g8) hö(c2)
<Guest40>
Is there a easier way than using nested modules to implement optional parameters dependent on other input parameters?
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
<Guest40>
"var = is_undef(var)?f(...):var;" is the Solution
ali1234 has quit [Remote host closed the connection]
ali1234 has joined #openscad
<teepee>
not with the same "var" though
<teepee>
well, that said it probably works with var as parameter name and as local variable but that might be not obvious
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
Guest40 has quit [Quit: Client closed]
snaked has joined #openscad
peeps[work] has quit [Ping timeout: 246 seconds]
<JordanBrown[m]>
It does. I have a function default(var, def) that returns var if it is not undef, else returns def. One of my stock patterns is
<JordanBrown[m]>
param = default(param, 123);
<JordanBrown[m]>
guso78: although giving OpenSCAD all of POV-RAY's capabilities would be cool... I wouldn't. What I *have* thought about is a POV-RAY exporter, that would export one of our CSG trees as POV-RAY source. To go with that would be an annotation scheme that would let you annotate the CSG tree with the stuff that POV-RAY wants to define textures and whatnot.