POV-Ray : Newsgroups : povray.general : Ovus : Re: Ovus Server Time
29 Apr 2024 02:15:32 EDT (-0400)
  Re: Ovus  
From: Le Forgeron
Date: 4 May 2016 10:43:42
Message: <572a0a9e$1@news.povray.org>
Le 04/05/2016 14:24, clipka a écrit :
> Am 04.05.2016 um 08:49 schrieb Le_Forgeron:
>> Le 03/05/2016 00:37, clipka a écrit :
>>> Gerome, this one primarily goes out to you:
>>>
>>> I've just come across the documentation of the "ovus" primitive, and am
>>> a bit puzzled.
>>>
>>> The parameters of the top and bottom sphere are clear enough.
>>>
>>> However, what I don't understand is how the major and minor radii of the
>>> connecting spindle section are determined; theoretically we should have
>>> an infinite number of different spindles to choose from.
>>>
>>
>> The minor radius of the spindle is twice the biggest radius of the
>> circles. (in code : ConnectingRadius).
>>
>> The major radius of the spindle is implicit, as only the position of the
>> center of the circle of the torus is computed. (in 2D)
>>
>> The choice of the minor radius (biggest circle x 2) is so that when the
>> smaller radius would disappear (aka be near 0), the remaining sphere and
>> the spindle would merge. (well, in fact, the visible part of the spindle
>> would also disappears, without discontinuity)
>
> I just pondered about these words for a while, puzzled, until I realized
> that there is another parameter we don't have control over: The distance
> between the two spheres. According to the docs this is fixed to the
> radius of the bottom sphere, right? (Does this also hold true if the
> bottom radius is the smaller one?)
>
> I have a few requests:
>
> (1) Can you update the documentation to include...
> (1.a) how the radius of the spindle is computed;
> (1.b) the fact(?) that the bottom sphere is always placed at <0,0,0>
>

the documentation is in the wiki, right ? So anyone could update it to 
add these element. I thought 1.b was already in the documentation.


> (2) Do you think you can extend the code to allow for more flexibility
> in the shape, by letting us specify the distance between the two spheres
> as well as the minor radius of the spindle?
>

I would not clobber the actual object with such extension, but I might 
consider a new object (along the line of sor & lathe). The main "beauty" 
of ovus is being similar to torus, and simple.
Can you provide a new name for such new beast ?
(which might be half-way to something similar to the polynomial equation 
of a torus with displaced hole, and maybe more than one hole)
(just to say that it is more complex object)

And may be some suggestion for the syntax ?
About being doable, yes, I can (but there will be additional constraints 
on the values, such a minimal minor radius function of the three other 
distances under which you would get an error)
And do you expect default values for some parameters too ? (yet more 
syntax sugar... )


Post a reply to this message

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