|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
I have a strange problem, where I were not able to find a solution on the net so
far.
When I use a "sin(...)" in a sor- or lathe-object, the argument of the function
cannot exceed Pi.
For Example:
sor{5,
<1,2>,
<sin(3),3>,
<sin((1.001-0.001)*Pi),5>,
<4,6>,
<1,7>
pigment{color Blue}
}
this works fine, but with
sor{5,
<1,2>,
<sin(3),3>,
<sin(1.001*Pi),5>,
<4,6>,
<1,7>
pigment{color Blue}
}
I get the error message:
"Parse error: Incorrect point in sor."
I used a self-defined Pi in this example, but even without "sin(3)" works,
"sin(3.15)" and bigger arguments do not work.
Even if I have a macro which calculates the sine
#macro Sine(x)
#declare Global_Value=sin(x);
#end
and put "Global_Value" within the brackets of the coordinates in sor (or lathe)
I have the exact same effect.
If I use a sine for the position of a light source for example, I can put in
every argument.
I am using Povray 3.6.1 from the ubuntu repository and I also tried it with the
same result on a windows machine and Povray 3.6.2.
Any suggestions?
Cheers
McMinty
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
McMinty schrieb:
> Hi,
>
> I have a strange problem, where I were not able to find a solution on the net so
> far.
>
> 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}
}
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks,
this shows again that I should read the docs more carefully.
Cheers
McMinty
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|