|
|
clipka <ano### [at] anonymousorg> wrote:
> Am 30.07.2018 um 14:53 schrieb Kenneth:
>
> > I assumed that the dot-notation would work-- because the components of VAR are
> > all individual scalar quantities now.
> >
> > I tried surrounding the individual VAR components with parentheses (to try and
> > 'eliminate' their vector nature, similar to dot-operator use for colors when a
> > 'non-color' value is needed) but that doesn't work either.
> >
> > I'm curious to know the reason for this limitation.
>
> Functions are essentially processed by a completely different parser.
> Some features implemented in the normal parser never made it into the
> functions parser.
IIRC one can use dot notation in functions when dealing with vector valued
functions. Here's an example that works:
#include "functions.inc"
#declare T_Fn =
function {
transform {
scale <3, 1, 2>
inverse
}
}
#declare Ellipsoid_Fn =
function {
f_sphere(
T_Fn(x, y, z).x,
T_Fn(x, y, z).y,
T_Fn(x, y, z).z,
1
)
}
--
Tor Olav
http://subcube.com
Post a reply to this message
|
|