POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0) Server Time
27 Dec 2024 04:01:59 EST (-0500)
  Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0) (Message 1 to 10 of 10)  
From: William F Pokorny
Subject: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 21 May 2024 02:48:50
Message: <664c43d2$1@news.povray.org>
In adopting a suggestion from Bill Walker, an implementation of an 
inbuilt f_catenary() function, documentation and an example scene file 
will be included in release R15 of yuqk.

Bill P.


Post a reply to this message


Attachments:
Download 'f_catenary.txt' (4 KB) Download 'f_catenary_story.png' (169 KB)

Preview of image 'f_catenary_story.png'
f_catenary_story.png


 

From: Cousin Ricky
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 21 May 2024 11:15:00
Message: <web.664cb9c792fe609260e0cc3d949c357d@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> In adopting a suggestion from Bill Walker, an implementation of an
> inbuilt f_catenary() function, documentation and an example scene file
> will be included in release R15 of yuqk.
>
> Bill P.

This sounds very useful!


Post a reply to this message

From: Bald Eagle
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 21 May 2024 11:50:00
Message: <web.664cc1d892fe60927b170db125979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> In adopting a suggestion from Bill Walker, an implementation of an
> inbuilt f_catenary() function, documentation and an example scene file
> will be included in release R15 of yuqk.
>
> Bill P.

Thanks Bill!   :)

I don't understand what the pointy curves are - shouldn't they all have rounded
minima?

I'm happy that some of these basic curve shapes that are often used in modeling
are being implemented into the source of your fork.


Also for your consideration, it would be useful to have f_bezier or f_bernstein
for modeling quadratic or cubic curves, and perhaps f_voronoi which would take a
list of seed values as an argument.


Post a reply to this message

From: William F Pokorny
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 22 May 2024 04:36:43
Message: <664dae9b$1@news.povray.org>
On 5/21/24 11:12, Cousin Ricky wrote:
> This sounds very useful!

:-) I hope it proves so. It's something to play with in any case.

The approach / form isn't the only possible. I borrowed mostly from 
Wikipedia and my old copy of "The VNR Concise Encyclopedia of 
Mathematics (2nd edition)."

Another approach was used by PM 2RING for his catenary.inc set up 
specifically for chains with definable links. This include might have 
been in the object collection..? My copy of it came by way of a post 
from Thomas a few years ago.

Bill P.


Post a reply to this message

From: William F Pokorny
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 22 May 2024 04:58:22
Message: <664db3ae$1@news.povray.org>
On 5/21/24 11:46, Bald Eagle wrote:
> I don't understand what the pointy curves are - shouldn't they all have rounded
> minima?
> 
Only the upper row, left and center are based on catenary curves.

With the rest I was using results from the other modes to create the 
shapes. IIRC, it's y' (slope) in the upper right. The bottom row being 
arc length, t and angle.

The bottom center - if inverted - is close to the main roof line of the 
Sears & Roebuck barn on the tiny farm where I lived for most of my 
youth. :-)

> ...
> 
> Also for your consideration, it would be useful to have f_bezier or f_bernstein
> for modeling quadratic or cubic curves, and perhaps f_voronoi which would take a
> list of seed values as an argument.

:-)

A somewhat more flexible form of the quilted pattern's 2D 'quilt_cubic' 
is available as an inbuilt in yuqk as f_quilt_cubic(), FWIW. With the 
first two, I'd lean toward adding them as additional splines(a). It 
might be hgpovray38 has these - it supports many additional splines.

The f_voronoi() inbuilt is on my list (with additional metrics). The 
hgpovray38 fork has already some of the voronoi with specified vertices 
functionality already too.

Bill P.

(a) - Or maybe that and plus an inbuilt f_bezier() with two or more 
internal control points..? Suppose where I've implemented inbuilt 
patterns as true inbuilt functions too, I've almost always done this in 
a way that the function is much more flexible with respect to options 
and return values.


Post a reply to this message

From: Bald Eagle
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 22 May 2024 06:35:00
Message: <web.664dc9ad92fe60921f9dae3025979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> IIRC, it's y' (slope) in the upper right. The bottom row being
> arc length, t and angle.

Ah, they are graphs.   Got it.

>  With the
> first two, I'd lean toward adding them as additional splines(a). It
> might be hgpovray38 has these - it supports many additional splines.

But then I'm trapped by the restriction of only using those with in a spline
keyword block.  Better would be to allow spline {} to take any function as a
spline definition (whether it would make sense to from a spline perspective or
not).

> The f_voronoi() inbuilt is on my list (with additional metrics). The
> hgpovray38 fork has already some of the voronoi with specified vertices
> functionality already too.

It's still a challenge (for me) to return a result of "I am in cell 'N', closest
to seed 'n' " rather than just returning the seed-ignorant value of the distance
to the nearest seed.
That seems to lie firmly in the realm of
under-the-hood-algorithm-masquerading-as-a-function.


As always much interesting stuff to think about, and fun stuff to play with.
RL is being a real bugger lately, so not much povving has been done.

- BW


Post a reply to this message

From: Cousin Ricky
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 22 May 2024 12:30:00
Message: <web.664e1c8792fe609260e0cc3d949c357d@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
>
> Another approach was used by PM 2RING for his catenary.inc set up
> specifically for chains with definable links. This include might have
> been in the object collection..? My copy of it came by way of a post
> from Thomas a few years ago.

It was never in the Object Collection.  My copy came from this post:

https://news.povray.org/web.43182c9b30c60c8bbc2b06b10%40news.povray.org


Post a reply to this message

From: jr
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 22 May 2024 12:50:00
Message: <web.664e211e92fe6092869a24876cde94f1@news.povray.org>
hi,

"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
> > Another approach was used by PM 2RING for his catenary.inc ...
> It was never in the Object Collection.  ...

the collection does have Chris B's 'rope' set of macros though, where 'catenary'
is among the given keywords.  no idea if useful / applicable, but attached here.


regards, jr.


Post a reply to this message


Attachments:
Download 'pov_oc_000154.zip' (1042 KB)

From: William F Pokorny
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 23 May 2024 11:43:14
Message: <664f6412$1@news.povray.org>
On 5/22/24 12:45, jr wrote:
> Chris B's 'rope' set of macros though, where 'catenary'
> is among the given keywords.

Yes, perhaps this is what I was remembering... With my old head one can 
never be sure. :-)

Bill P.


Post a reply to this message

From: William F Pokorny
Subject: Re: Suggest v4.0 inbuilt f_catenary(). (yuqk R15 v0.6.9.0)
Date: 23 May 2024 11:57:04
Message: <664f6750$1@news.povray.org>
On 5/22/24 06:32, Bald Eagle wrote:
> Better would be to allow spline {} to take any function as a
> spline definition (whether it would make sense to from a spline perspective or
> not).

That's an interesting idea. Where the functions support 't' or at least 
a rough equivalent I suppose.

Once in a while I look at Ingo's gradient.inc with the idea of 
supporting something like that whole collection as one inbuilt function 
with 'modes' or 'selections' to run each.

Bill P.


Post a reply to this message

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