POV-Ray : Newsgroups : povray.binaries.images : polygon to circle loft Server Time
17 May 2024 22:51:12 EDT (-0400)
  polygon to circle loft (Message 32 to 41 of 51)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: LanuHum
Subject: Re: polygon to circle loft
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

From: Paolo Gibellini
Subject: Re: polygon to circle loft
Date: 13 May 2015 04:07:16
Message: <55530634$1@news.povray.org>
And wrote on 11/05/2015 18.01:
> Well, here is its bottom.
>
:D


Post a reply to this message

From: LanuHum
Subject: Re: polygon to circle loft
Date: 13 May 2015 13:35:01
Message: <web.55538a7e908ae4217a3e03fe0@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.

even it is correct, odd it is incorrect


Post a reply to this message


Attachments:
Download 'polynomcircle.jpg' (59 KB)

Preview of image 'polynomcircle.jpg'
polynomcircle.jpg


 

From: And
Subject: Re: polygon to circle loft
Date: 14 May 2015 03:45:01
Message: <web.5554517b908ae4213f4ed4340@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
>
> even it is correct, odd it is incorrect

I have to get to work, I will investigate it later.


Post a reply to this message

From: And
Subject: Re: polygon to circle loft
Date: 14 May 2015 11:45:03
Message: <web.5554c26b908ae4213f4ed4340@news.povray.org>
Could you give me an example (code)?

I never saw it.


Post a reply to this message

From: And
Subject: Re: polygon to circle loft
Date: 14 May 2015 12:15:01
Message: <web.5554c9d2908ae4213f4ed4340@news.povray.org>
My renderings


Post a reply to this message


Attachments:
Download 'loft test2 7 tri.png' (38 KB)

Preview of image 'loft test2 7 tri.png'
loft test2 7 tri.png


 

From: And
Subject: Re: polygon to circle loft
Date: 14 May 2015 12:20:01
Message: <web.5554cada908ae4213f4ed4340@news.povray.org>
I have a question.
Can I upload more than one picture here?


Post a reply to this message


Attachments:
Download 'loft test2 7 quad.png' (40 KB)

Preview of image 'loft test2 7 quad.png'
loft test2 7 quad.png


 

From: LanuHum
Subject: Re: polygon to circle loft
Date: 14 May 2015 13:00:01
Message: <web.5554d462908ae4217a3e03fe0@news.povray.org>
"And" <49341109@ntnu.edu.tw> wrote:
> Could you give me an example (code)?
>
> I never saw it.

#version 3.7;

global_settings {
}
background {rgbt<0.05, 0.05, 0.05, 0>}

#declare Default_texture = pigment {rgb 0.8}

#declare Material = texture {pigment {rgbt <0.8,0.8,0.8,0>}}

#declare height = 0.5;
#declare poly_n = 3;
#declare poly_r = 0.5;
#declare cycle_r = 0.13;
#declare an = 2*pi/poly_n;
#declare poly_thr = poly_r*cos(an/2);
#declare bound=max(cycle_r,poly_r);
#declare multi = 10;

#declare poly_obj =
polynomial{
4,
xyz(0,2,2):multi*1,
xyz(2,0,1):multi*2*height,
xyz(1,0,2):multi*2*(poly_thr-cycle_r),
xyz(2,0,0):multi*(-pow(height, 2)),
xyz(0,0,2):multi*(-pow(cycle_r - poly_thr, 2)),
xyz(1,0,1):multi*2*height*(-2*poly_thr + cycle_r),
xyz(1,0,0):multi*2*pow(height,2)*poly_thr,
xyz(0,0,1):multi*2*height*poly_thr*(poly_thr - cycle_r),
xyz(0,0,0):multi*(-pow(poly_thr*height, 2))
sturm
}

#declare mockup2 =
difference{
    cylinder{
    <0,0,0.0>,<0,0,height>, bound
    }

    #for(i, 0, poly_n-1)
        object{
        poly_obj
        inverse
        rotate <0,0,degrees(an*i)>
        }
        plane{
        <1,0,0>,-poly_thr
        rotate <0,0,degrees(an*i)>
        }
    #end
texture {pigment {rgb 1}}
scale 3
rotate <0,90,90>
}

mockup2

light_source {
    <4.08,5.9,5.1>
    color rgb<1, 1, 1>
}

camera {
    location  <0, 0, 0>
    look_at  <0, 0, -1>
    right <-1.7777777777777777, 0, 0>
    up <0, 1, 0>
    angle  49.134343
    rotate  <-27.098163, 46.688390, -0.903519>
    translate <7.481132, 5.343666, 6.507640>
}


Post a reply to this message

From: Doctor John
Subject: Re: polygon to circle loft
Date: 14 May 2015 15:04:09
Message: <5554f1a9@news.povray.org>
On 14/05/15 17:18, And wrote:
> I have a question.
> Can I upload more than one picture here?
> 

Yes. Proof attached

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message


Attachments:
Download 'papi.jpg' (146 KB) Download 'kfm4.jpg' (100 KB)

Preview of image 'papi.jpg'
papi.jpg

Preview of image 'kfm4.jpg'
kfm4.jpg


 

From: William F Pokorny
Subject: Re: polygon to circle loft
Date: 14 May 2015 15:36:36
Message: <5554f944$1@news.povray.org>
On 05/14/2015 03:04 PM, Doctor John wrote:
> On 14/05/15 17:18, And wrote:
>> I have a question.
>> Can I upload more than one picture here?
>>
>
> Yes. Proof attached
>
> John
>
I like that second one. The first, well, I'll opt not to comment...

And, I use Thunderbird as my interface to the povray news groups. With 
Thunderbird or similar you can indeed upload more than one image as John 
showed.

While I am too lazy to verify it at the moment, I seem to recall the web 
interface to the news groups permits only one image per post. If true, 
and you are using the web interface, perhaps this is why you cannot 
attach more then one image.

Bill P.


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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