POV-Ray : Newsgroups : povray.binaries.images : profile following a parametric curve Server Time
3 May 2025 08:04:06 EDT (-0400)
  profile following a parametric curve (Message 1 to 9 of 9)  
From: kurtz le pirate
Subject: profile following a parametric curve
Date: 1 May 2025 06:22:42
Message: <68134b72@news.povray.org>
hello,


My first attempts.

Curves are defined with Cartesian parameters: x=f(t), z=g(t).
The profile is a simple polygon.

Basic texture, lighting with area_light.
Low resolution (800x600).








-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message


Attachments:
Download 'param_limaconofpascal .png' (75 KB) Download 'param_hypotrochoidet.png' (173 KB) Download 'param_lemniscateofbernoulli.png' (86 KB)

Preview of image 'param_limaconofpascal .png'
param_limaconofpascal .png

Preview of image 'param_hypotrochoidet.png'
param_hypotrochoidet.png

Preview of image 'param_lemniscateofbernoulli.png'
param_lemniscateofbernoulli.png


 

From: Bald Eagle
Subject: Re: profile following a parametric curve
Date: 1 May 2025 08:40:00
Message: <web.68136b97174259626563700825979125@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:

> Curves are defined with Cartesian parameters: x=f(t), z=g(t).
> The profile is a simple polygon.

Nice job with the profiles.

What's the arc-length of that lemniscate?   :D

- BE


Post a reply to this message

From: kurtz le pirate
Subject: Re: profile following a parametric curve
Date: 1 May 2025 09:53:55
Message: <68137cf3@news.povray.org>
On 01/05/2025 14:39, Bald Eagle wrote:
> kurtz le pirate <kur### [at] freefr> wrote:
> 
>> Curves are defined with Cartesian parameters: x=f(t), z=g(t).
>> The profile is a simple polygon.
> 
> Nice job with the profiles.
> 
> What's the arc-length of that lemniscate?   :D


Simple. Here, half-width a = 24 = c√2.

                   2*π
Then, length = --------- * c
                M(1,1/√2)


With M(a,b) the arithmetic–geometric mean function.


;)




-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message

From: William F Pokorny
Subject: Re: profile following a parametric curve
Date: 1 May 2025 10:34:16
Message: <68138668$1@news.povray.org>
On 5/1/25 06:22, kurtz le pirate wrote:
> My first attempts.
> 
> Curves are defined with Cartesian parameters: x=f(t), z=g(t).
> The profile is a simple polygon.

Cool!

Bill P.


Post a reply to this message

From: Bald Eagle
Subject: Re: profile following a parametric curve
Date: 1 May 2025 11:40:00
Message: <web.6813953c174259626563700825979125@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:

> Simple. Here, half-width a = 24 = c√2.
>
>                    2*π
> Then, length = --------- * c
>                 M(1,1/√2)
>
>


Maybe not so simple?
https://en.wikipedia.org/wiki/Elliptic_function#History

(I only know that because I was trying to hunt down a good overview of
calculating the arc-length of a catenary, and move along the curve at regular
intervals.)

- BW


Post a reply to this message

From: kurtz le pirate
Subject: Re: profile following a parametric curve
Date: 1 May 2025 12:01:32
Message: <68139adc$1@news.povray.org>
On 01/05/2025 17:37, Bald Eagle wrote:
> kurtz le pirate <kur### [at] freefr> wrote:
> 
>> Simple. Here, half-width a = 24 = c√2.
>>
>>                     2*π
>> Then, length = --------- * c
>>                  M(1,1/√2)
>>
>>
>> With M(a,b) the arithmetic–geometric mean function.
> 
> Maybe not so simple?
> https://en.wikipedia.org/wiki/Elliptic_function#History


That's right.

But my answer is more of a joke and a simple copy/paste from Wiki
<https://en.wikipedia.org/wiki/Lemniscate_of_Bernoulli#Arc_length_and_elliptic_functions>








-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message

From: Bald Eagle
Subject: Re: profile following a parametric curve
Date: 1 May 2025 12:45:00
Message: <web.6813a418174259626563700825979125@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:

> That's right.
>
> But my answer is more of a joke and a simple copy/paste from Wiki
>
<https://en.wikipedia.org/wiki/Lemniscate_of_Bernoulli#Arc_length_and_elliptic_functions>


Nice.  (I suspected)

"It therefore obviously follows that . . ."    ;)

- BW


Post a reply to this message

From: Chris R
Subject: Re: profile following a parametric curve
Date: 2 May 2025 10:20:00
Message: <web.6814d401174259623d0038515cc1b6e@news.povray.org>
kurtz le pirate <kur### [at] freefr> wrote:
> hello,
>
>
> My first attempts.
>
> Curves are defined with Cartesian parameters: x=f(t), z=g(t).
> The profile is a simple polygon.
>
> Basic texture, lighting with area_light.
> Low resolution (800x600).
>
>
>
>
>
>
>
>
> --
> kurtz le pirate
> compagnie de la banquise

Do you adjust the size of your profile object as you follow the curve, or does
it just have a very tiny thickness at each t step?  When I use this technique, I
struggle with getting the resulting object smooth if the curves are wide.

-- Chris R


Post a reply to this message

From: kurtz le pirate
Subject: Re: profile following a parametric curve
Date: 2 May 2025 10:55:45
Message: <6814dcf1$1@news.povray.org>
On 02/05/2025 16:17, Chris R wrote:
> 
> Do you adjust the size of your profile object as you follow the curve, or does
> it just have a very tiny thickness at each t step?  When I use this technique, I
> struggle with getting the resulting object smooth if the curves are wide.
> 
> -- Chris R
> 


Hello Chris.

In fact, my profile has no thickness !
The profile is only defined by points in an a array and doesn't really 
exist.


For example, the profile for a triangle is defined like this:
#declare i = 0;
#while ( i < NumberOfVertices)
   #declare ShapePoints[i] = RotateX(<0, ShapeRadius, 0>, Angle*i);
   #declare i = i +1;
#end
The shape is in the y-z plane.

I position the first profile for t=0;

Then I calculate the position for the second (t=t+epsilon) and build 
triangles* that connect the two profiles.

* : using the true POV object : triangle { p0, p1, p2 }




-- 
kurtz le pirate
compagnie de la banquise


Post a reply to this message


Attachments:
Download 'parametrique_limacon de pascal _connect_prof0.png' (124 KB)

Preview of image 'parametrique_limacon de pascal _connect_prof0.png'
parametrique_limacon de pascal _connect_prof0.png


 

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