|
![](/i/fill.gif) |
There's another problem. What about this:
box
{ <1,2,3>, <4,5,6>
rotate x*30
texture { Whatever }
rotate y*45
}
What will be the transformation got out of that?
Btw: I have one idea (which has only little to do with this transformations
thing):
In latex you can attach a label to most items, for example:
\section{Why povray is the best?} \label{First section}
Then you can refer to that section by writing for example:
For more information, see section \ref{First section}.
This will substitute the \ref-statement with the appropriate section number
(which may change when adding more section before that one).
In povray this kind of labeling would just be a shortcut for first
#declaring the thing and then creating an instance of it. It would just
do both things at once.
Then perhaps you could do something like (not necessarily with this syntax):
box \label{MyBox}
{ <1,2,3>, <4,5,6>
transform \label{MyBoxTrans}
{ rotate x*30
}
}
object { MyBox transform { MyBoxTrans inverse } }
This would create two boxes. The first with transformations and the second
without.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |