|
![](/i/fill.gif) |
Thanks David - I'll give it a try.
As a workaround I can always write a bicubic_patch, but that's a lot of work.
steve
David Wilkinson wrote:
> Steve,
> You need to scale, rotate, translate in that order.
> This little macro does the trick for any dimensions and leaves the frustrated
pyramid
> sitting on <0,0,0>.
> David
>
> // --------------------pyramid macro--------------
> #macro Pyramid_4_Side(Apex,Height,Side)
> prism
> {
> conic_sweep
> 1,
> 1-Height/Apex,
> 5,
> <Side, Side >,
> <-Side, Side >,
> <-Side, -Side >,
> <Side, -Side >,
> <Side, Side >
> scale <1,Apex,1>
> rotate <180, 0, 0>
> translate <0, Apex, 0>
> }
> #end
>
> object { Pyramid_4_Side(204,38,32)
> pigment { Red }
> }
> //-----------------end of program
> ------------
> dav### [at] cwcom net
> http://www.hamiltonite.mcmail.com
> ------------
Post a reply to this message
|
![](/i/fill.gif) |