POV-Ray : Newsgroups : povray.binaries.images : polygon to circle loft : Re: polygon to circle loft Server Time
1 Jun 2024 16:31:47 EDT (-0400)
  Re: polygon to circle loft  
From: LanuHum
Date: 12 May 2015 13:05:01
Message: <web.555231c8908ae4217a3e03fe0@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> The file is here:
>
http://news.povray.org/povray.binaries.scene-files/thread/%3Cweb.5551a29627d064353f4ed4340%40news.povray.org%3E/
>
> You can just include it and use the macro:
>
> //------coding here------------
> #include "blending_polygon_circle_shape.inc"
>
> object{
> Shape_Polygon_To_Circle_Blending(5, x, 0.3, 0.1, 0.8)
> pigment{rgb<0.5,0.56,0.5>}
> }
>
>
> //---------------------------
>
> 1. The macro create a shape that blend a regular polygon of which center is at
> <0,0,0>, to a circle of which center at <0,0, height>.
>
> 2. The first parameter is the number of sides of the polygon.
> 3. The second parameter is a vector.
> 4. The third parameter is the circumscribed circle radius of the polygon.
> 5. The fourth parameter is the radius of the circle.
> 6. The fifth parameter is the height of the shape.

Thanks!


Post a reply to this message

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