POV-Ray : Newsgroups : povray.general : Conic Sweep questiom : Re: Conic Sweep questiom Server Time
11 Aug 2024 11:26:04 EDT (-0400)
  Re: Conic Sweep questiom  
From: Steve
Date: 2 Aug 1999 17:51:15
Message: <37A61454.E86C0550@puzzlecraft.com>
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] cwcomnet
> http://www.hamiltonite.mcmail.com
> ------------


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.