Node: SplinePositionInterpolator

X3D: 3.3
Component: Interpolation
Status:
experimental

Quick Links

➨ Fields

The SplinePositionInterpolator node non-linearly interpolates among a list of 3D vectors to produce an SFVec3f value_changed event. The keyValue, keyVelocity, and key fields shall each have the same number of values.

HTML Encoding and Default Values

<SplinePositionInterpolator buffer='""' closed='false' duration='"1"' interpolation='"LINEAR"' key='[]' keyValue='[]' keyVelocity='[]' metadata='X3DMetadataObject' normalizeVelocity='false' set_fraction='0' ></SplinePositionInterpolator>

Inheritance


Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
buffer SFString "" X3DInterpolatorNode The url to the binary file, that contains the buffer data.
closed SFBool false Specifies whether the interpolator should provide a closed loop, with continuous velocity vectors as the interpolator transitions from the last key to the first key.
duration SFString "1" X3DInterpolatorNode Specifies the duration
interpolation SFString "LINEAR" X3DInterpolatorNode Contains the interpolation method
key MFFloat [] X3DInterpolatorNode The key field contains the list of key times, the keyValue field contains values for the target field, one complete set of values for each key. Interpolator nodes containing no keys in the key field shall not produce any events. However, an input event that replaces an empty key field with one that contains keys will cause the interpolator node to produce events the next time that a set_fraction event is received.
keyValue MFVec3f [] Defines the set of data points, that are used for interpolation.
keyVelocity MFVec3f [] Defines the set of velocity vectors, that are used for interpolation.
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
normalizeVelocity SFBool false Specifies whether the velocity vectors are to be transformed into normalized tangency vectors.
set_fraction SFFloat 0 X3DInterpolatorNode The set_fraction inputOnly field receives an SFFloat event and causes the interpolator node function to evaluate, resulting in a value_changed output event of the specified type with the same timestamp as the set_fraction event.