That was exactly what I was looking for! Thanks!
Rob
"Slime" <fak### [at] emailaddress> wrote in message
news:410c9a5e@news.povray.org...
> x*(.5-y/6)
>
> You're on the right track with that. Try this:
>
> x-y/6
>
> and you'll find that you have a quadrilateral block. Now you just need to
> mirror that across the center. One way to do this is:
>
> abs(x)-y/6
>
> which only works because the block starts off symmetrical. An alternative
> option is:
>
> x - sign(x)*y/6
>
> where sign(x) is defined as (untested code):
>
> #declare sign = function(x) {select(x,-1,1)}
>
> - Slime
> [ http://www.slimeland.com/ ]
>
>
Post a reply to this message
|