Class BaseNormal

java.lang.Object
All Implemented Interfaces:
VRMLNode, FrameStateListener, VRMLGeometricPropertyNodeType, VRMLNodeType, VRMLNormalNodeType
Direct Known Subclasses:
NRNormal, OGLNormal

public abstract class BaseNormal extends BaseGeometricPropertyNode implements VRMLNormalNodeType
Common base implementation of a normal node.

Vectors are held internally as a flat array of values. The point list returned will always be flat. We do this because renderers like point values into the geometry classes as a single flat array. The array returned will always contain exactly the number of points specified even though internally we may do other things.

The effect of this is that point values may be routed out of this node as a flat array of points rather than a 2D array. Receiving nodes should check for this version as well. This implementation will handle being routed either form. The Normal node is defined by the X3D specification as:

  Normal : X3DNormalNode {
    SFNode  [in,out] metadata NULL [X3DMetadataObject]
    MFVec3f [in,out] vector   []   (-inf,inf)
  }
 
Version:
$Revision: 1.13 $
Author:
Alan Hudson