IFEM
IFEM copied to clipboard
added: allow for defining a function for textureproperties
this allows for a generic f(texture(X)) where f can be scalar or vector valued.
ideally f would be a function of property name but as we do not have a base class for f: R -> R^3 we have to use the f: R^3 -> R^3 type for vector functions. for this reason, both scalar and vectorial functions have to refer to the texture value as 'x'.
jenkins build this with downstreams please
jenkins build this with downstreams please
Regarding "as we do not have a base class for f: R -> R^3", you can do, e.g., typedef utl::Function<Real,Vec3> Vec3Func;
to get Vec3Func a base class for such functions. See for instance TractionField.h where I use that to represent a time-dependent vector field.
yeah, i realize that it's doable but i'd have to implement a ExprFunc version of it.