<<VRML 2.0 - An Introductory view by examples

Normal

[example]                                                [run] 

This node defines a set of 3D surface normal vectors to be used in the vector field some geometry nodes (e.g. IndexedFaceSet, ElevationGrid). Specified values are directions values.

{
exposedField MFVec3f vector [ ] # a set of directions vectors
}


Usage :

Shape{
   geometry IndexedFaceSet{
            coordIndex [ 0, 1, 2, -1 ]        ; 3 points defining the face
            coord Coordinate 
                    {point [1 0 0, 0 1 0, 0 0 1 ]} ; points coordinate
            normal Normal
                    {vector [ 1 0 0, 0 .5 0, 0 0 1]} ; vectors directions
                           }
      }