POV-Ray : Newsgroups : povray.newusers : sin in sor or lathe : Re: sin in sor or lathe Server Time
6 Oct 2024 01:52:32 EDT (-0400)
  Re: sin in sor or lathe  
From: Chris B
Date: 6 Aug 2009 02:45:23
Message: <4a7a7c03@news.povray.org>
"clipka" <ano### [at] anonymousorg> wrote in message 
news:4a79f78a$1@news.povray.org...
> McMinty schrieb:
>> Hi,
>>
>> When I use a "sin(...)" in a sor- or lathe-object, the argument of the 
>> function
>> cannot exceed Pi.
>>
>
> This is not a problem with the sin function per se, but with its function 
> result becoming negative, which sor and lathe will refuse to accept in the 
> X coordinate. For instance, the following should work perfectly:
>
> sor{5,
>    <1,2>,
>    <1+sin(3),3>,
>    <1+sin(1.001*Pi),5>,
>    <4,6>,
>    <1,7>
>    pigment{color Blue}
> }

You can also use  abs(sin(,,,))  if you want the points to effectively 
'straddle' the y-axis as an alternative to thickening out the core of the 
generated object.

Regards,
Chris B.


Post a reply to this message

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