|
|
Am 10.12.2016 um 17:16 schrieb Tor Olav Kristensen:
>> When standing on its own (as opposed to `Something.x`) outside of a
>> function definition, `x` is a constant evaluating to `<1,0,0>`. Thus,
>> the expression
>>
>> abs(x - Position.x)
>>
>> is equivalent to
>>
>> abs(<1,0,0> - Position.x)
>>
>> which, thanks to scalar-to-vector promotion, is in turn equivalent to
>>
>> abs(<1,0,0> - <Position.x,0,0>)
>>
>> which in turn is equivalent to
>>
>> abs(<1-Position.x,0,0>)
>
> Clipka, I think you meant to write this:
>
>
> which, thanks to scalar-to-vector promotion, is in turn equivalent to
>
> abs(<1,0,0> - <Position.x, Position.x, Position.x>)
>
> which in turn is equivalent to:
>
> abs(<1 - Position.x, -Position.x, -Position.x>)
No, I did mean to write what I wrote -- though that doesn't make it any
better ;)
You are, of course, right.
> Btw.: I wish POV-Ray had a "#stop" directive that didn't make so much fuss about
> stopping. A directive that results in parsing only, without rendering, would be
> great for code that is not written for the purpose of creating an image - which
> I write a lot of.
Command-line options `-f -d` should do the trick.
(What I'm missing more is a generic means to merge the INI settings and
scene description into one single file, which would thus cover your
feature request. But I'm not sure yet how to tackle that. Maybe an
optional `#ini ... #end` block at the start of the file, which the
front-end could scan for and the parser could skip over.)
Post a reply to this message
|
|