<<VRML 2.0 - An Introductory view by examples

CoordinateInterpolator

[example]                                         [run]


ColorInterpolators interpolate linearly among a set of MFVec3f values (keyValue parameter) (space coordinate values).

{
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 ncoordinate values associated to each above field)
eventOut MFVec3f value_changed # current output set (n values associated to the current time)
}

Usage :


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