TheAssassin has quit [Quit: No Ping reply in 180 seconds.]
TheAssassin has joined #openscad
L29Ah has quit [Read error: Connection reset by peer]
foul_owl has quit [Ping timeout: 255 seconds]
mmu_man has quit [Ping timeout: 255 seconds]
JakeSays_ is now known as JakeSays
kintel has joined #openscad
<kintel>
humm, something seems to be off with the github Windows build
<kintel>
D:/a/openscad/openscad/build/_deps/clipper2-src/CPP/Clipper2Lib/include/clipper2/clipper.core.h:181:22: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor]
<J24k97>
if i overwrite an existing variable with a conditional - it fails if the conditional was not in the scope of the first definition of that variable.
<J24k97>
a=1;b=0;a=b?1:2;
<J24k97>
is this a bug? because i need to define the conditional above the include of the library that has the variable - which is a bit odd .. or i need to use new variables
extor has quit [Ping timeout: 256 seconds]
L29Ah has joined #openscad
extor has joined #openscad
extor has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
extor has joined #openscad
<Virindi>
I keep getting told that overwriting variables is "not supported" and should not be used
<J24k97>
in the same scope it causes warnings but you can do this in a different scope
<J24k97>
and it is working fine within a module but not from a library
<J24k97>
as this is probably the same scope - but overwriting doesn't cause a warning here.
erectus has quit [Ping timeout: 260 seconds]
erectus has joined #openscad
teepee has quit [Ping timeout: 260 seconds]
teepee has joined #openscad
Guest67 has joined #openscad
Guest67 has quit [Client Quit]
erectus has quit [Ping timeout: 260 seconds]
erectus has joined #openscad
mmu_man has joined #openscad
L29Ah has left #openscad [#openscad]
pca006132 has quit [Remote host closed the connection]
<Guest66>
Hello I'm new on this chat. Can somebody help me out for an animation on OpenSCAD.... I do not understand howto link two bars together. supposing bar A is rotating, how can I link bar B which only moves up and down, to one end of bar A. Could you please help me out. My mail is roberto.hamm@sfr.fr
<Guest66>
thanks for your help.
<J24k97>
Guest66 you have a variable $t that is going from 0↦1 when animation is running .. that allows you to link movements
<J24k97>
a rotation point is [cos(rot),sin(rot)]*radius but you can also create the linkage with hull() so you don't need to calculate the angles
<Guest66>
Yes thank you, I understand the functioning of $t, but my problem is to know how to obtain that mu bar B could be connected to one end of bar A which is rotating... I don't see how this could work with hull()
<InPhase>
Guest66: ^ Use those links and show a bit of code that clarifies what the bars look like that you're talking about, and what the connection issue is.
<InPhase>
There are a range of different issues that can happen with connecting sequences of model elements, so it's not clear which of those issues you mean.
<Guest66>
I have one link called bar() which is rotating with : "rotate([0,0,$t*360]) bar();" and I would connect an other bar(); at one end of the first one , in order to having it just go up and down connected to on end of the first one...
<InPhase>
It's still not clear, perhaps from the word choices. Are you trying to make the second one move up and down? Or do you mean you want it oriented vertically?
<InPhase>
Guest66: It's not obvious what the cy1, cy2, and cub2 should look like, so if you can put the full thing at bpa.st that will help communication.
<Guest66>
I don't know how this works, - I've put my code in the bpa.st
<Guest66>
Did you see my code ?
<InPhase>
You have to share the bpa.st link with us after you do that.