H3D::NormalInterpolator Class Reference
[X3D node classes.]

The NormalInterpolator node interpolates among a list of normal vector sets specified by the keyValue field to produce an MFVec3f value_changed event. More...

#include <H3D/NormalInterpolator.h>

Inheritance diagram for H3D::NormalInterpolator:

Inheritance graph

List of all members.

Classes

struct  MFValue
 The SFValue field updates the interpolated value from the fields routed to it. More...

Public Member Functions

 NormalInterpolator (Inst< SFNode > _metadata=0, Inst< SFFloat > _set_fraction=0, Inst< MFFloat > _key=0, Inst< MFVec3f > _keyValue=0, Inst< MFValue > _value_changed=0)
 Constructor.

Public Attributes

auto_ptr< MFVec3fkeyValue
 The values to interpolate between.
auto_ptr< MFValuevalue_changed
 The interpolated result value.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

The NormalInterpolator node interpolates among a list of normal vector sets specified by the keyValue field to produce an MFVec3f value_changed event.

The output vector, value_changed, shall be a set of normalized vectors.

Values in the keyValue field shall be of unit length. The number of normals in the keyValue field shall be an integer multiple of the number of key frames in the key field. That integer multiple defines how many normals will be contained in the value_changed events.

Normal interpolation shall be performed on the surface of the unit sphere. That is, the output values for a linear interpolation from a point P on the unit sphere to a point Q also on the unit sphere shall lie along the shortest arc (on the unit sphere) connecting points P and Q. Also, equally spaced input fractions shall result in arcs of equal length. The results are undefined if P and Q are diagonally opposite.

Internal routes:
NormalInterpolator.dot

Member Data Documentation

The values to interpolate between.

Access type: inputOutput

NormalInterpolator_keyValue.dot

Referenced by NormalInterpolator().

The interpolated result value.

Access type: outputOnly

NormalInterpolator_value_changed.dot

Referenced by NormalInterpolator().


The documentation for this class was generated from the following files:

Generated on Fri Nov 7 10:30:37 2008 for H3D API by  doxygen 1.5.7