|
|
On 05/29/2016 01:32 PM, Le_Forgeron wrote:
>
> Thanks you for your input, on that point as well as the noisy surface when radius is
exactly the minimal one.
> It should be corrected with the new (and hopefully last) change on the lemon.
>
>> If we are going to jump to the 0.499999/2 radius on substitution as we do today, I
vote we go back to an error message.
>
> If the vertices are identical, an error message is issued (same as for
cylinder/cone)
> If the third radius is too small, it is adjusted to the smallest value and a warning
is written, thus allowing sturm and open without problem. So, no more discontinuity,
but no shrinking either.
>
> and for extra benefit, when the third radius is the minimal one, a sphere is used
instead of the torus part, removing the problem of noise on the surface due to
coincident surface.
>
Unfortunately, I am still seeing noise at the 0.5 radius with the
following code giving us the three rows in the attached image.
//----- Top set
// #declare LemonLeft = polynomial { 2,
// xyz(2,0,0):1,
// xyz(0,2,0):1,
// xyz(0,0,2):1,
// xyz(1,0,0):-2*-1.2,
// xyz(0,0,0):pow(-1.2,2)-pow(0.50000,2)
// sturm
// }
// #declare LemonCenter = polynomial { 2,
// xyz(2,0,0):1,
// xyz(0,2,0):1,
// xyz(0,0,2):1,
// xyz(0,0,0):-pow(0.50000,2)
// sturm
// }
//----- Middle set
// #declare LemonLeft = lemon {
// <-1.2,-0.5,0>, 0.0, <-1.2,0.5,0>, 0.0, 0.499999
// }
// #declare LemonCenter = lemon {
// <0,-0.5,0>, 0.0, <0,0.5,0>, 0.0, 0.50
// }
//----- Bottom set
#declare LemonLeft = lemon {
<-1.2,-0.5,0>, 0.0, <-1.2,0.5,0>, 0.0, 0.499999 sturm
}
#declare LemonCenter = lemon {
<0,-0.5,0>, 0.0, <0,0.5,0>, 0.0, 0.50 sturm
}
//----- All sets
#declare LemonRight = lemon {
<1.2,-0.5,0>, 0.0, <1.2,0.5,0>, 0.0, 0.500001 sturm
}
Bill P.
Post a reply to this message
Attachments:
Download 'hg_495:52beb76993f0.jpg' (208 KB)
Preview of image 'hg_495:52beb76993f0.jpg'
|
|