[OT] OpenSCad chyba?

Nesvacil Jiri nesvacil na posys.eu
Pondělí Říjen 3 19:47:53 CEST 2022


Tay jsem si kdysi naběhl.... viz níže

You can't change the value of Variables. If you update the value of a 
variable inside brackets, the new value will be lost as soon as you exit 
that scope.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Conditional_and_Iterator_Functions

Jirka

Dne 03.10.2022 v 18:58 Jaroslav Buchta napsal(a):
> Kdyz napisu
>
>     difference()
>     {
>         w = n*dist;
>         if (w <= 25)
>         {
>             w = 25;
>         }
>         plate(w);
>         if(go != 0)
>         {
>             for (i=[0:2])
>             {
>                 translate([ext+go+i*dist, -ov, h-gh])
>                     cube([gw, l+2*ov, 5]);
>             }
>         }
>     }
>
> nevykresli nic, kdyz w <= 25, v opacnem pripade ano.
>
> Uz jsem zkousel snad vsechny konstrukce a varianty s else ale stale 
> stejne.
>
> Neco mi uniklo nebo to takto proste nejde? Chci hodnotu zarovnat, asi 
> to napisu s ?: ale je to divne...
>
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list
------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20221003/437814d0/attachment.htm>


Další informace o konferenci Hw-list