<<VRML 2.0 - An Introductory view by examples

NormalInterpolator

[example]                                                   [run]


NormalInterpolators interpolate linearly among a set of MFVec3f values (surface normalized normal vectors).

{
eventIn SFFloat set_fraction # this input float value causes the interpolator function to evaluate
exposedField MFFloat key [ ] # key values in the set_fraction domain
exposedField MFVec3f keyValue [ ] # set of set-values (can be n values of normal to each value of the above field)
eventOut MFVec3f value_changed # current output set of normalized vectors (n values associated to the current time)
}

Usage :


    NormalInterpolator {
          key [0, 0.25, 0.5, 0.75, 1]
          keyValue [   ]
                          }