grjmell |
January 25, 2012 11:02 |
funkySetFields - expression evaluation - error
I have following expression in my funkSetFieldsDict:
Code:
expressions
(
setInternalField
{
field Ub;
expression "pos().z >= 0.1 ? vector(log(pos().z-0.08),0,0) : vector(0,0,0) ";
keepPatches true;
}
);
I always get a floating point error, unless i remove the "-0.08" bit. due to the condition to only evaluate that equation if pos().z >= 0.1 there should be no log of zero... so i don't understand why i always get that error?? in my mesh pos().z goes from 0 to 0.5.
|