|
|
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> add #break here, syntax is (mostly) :
> #range (...) ... #break
> #range (...) ... #break
<off-topic side note>
IMHO this is one place where copying the C syntax was not good.
It's a lot more common that the coder wants each case in a switch block to
be executed alone than to want that the execution continues to the next
case after the current one.
Thus it would make a lot more sense to implicitly assume a #break before
any #case or #range command by default, and have a keyword to tell povray
the contrary (ie. "yes, I really want you to continue with the next case
after this has been executed").
So instead of having a #break keyword, we could have some other keyword
for this purpose (which name could be an interesting issue in itself :) ).
</off-topic side note>
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
|