POV-Ray : Newsgroups : povray.binaries.images : polygon to circle loft : Re: polygon to circle loft Server Time
8 Jul 2024 04:00:20 EDT (-0400)
  Re: polygon to circle loft  
From: And
Date: 12 May 2015 03:15:13
Message: <web.5551a758908ae4213f4ed4340@news.povray.org>
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.


Post a reply to this message

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