Class SoNormalCache

All Implemented Interfaces:
SafeDisposable

public class SoNormalCache extends SoCache
Class SoNormalCache: A normal cache stores a list of normals.
  • Constructor Details

    • SoNormalCache

      public SoNormalCache(SoState state)
      Constructor.
  • Method Details

    • set

      public void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding)
      Calls set(normals, normalBinding, (int)0).
    • getDirectNormals

      public FloatBuffer getDirectNormals()
      Returns the list of normals in the cache .
    • getStartIndex

      public int getStartIndex()
      Returns the startIndex offset in the cache.
    • getNormals

      public SbVec3f[] getNormals()
      Returns the list of normals in the cache .
    • getNum

      public int getNum()
      Returns the number of normals in the cache.
    • getNormalBinding

      public SoNormalBindingElement.Bindings getNormalBinding()
      Returns the normal binding in the cache.
    • set

      public void set(SbVec3f[] normals, SoNormalBindingElement.Bindings normalBinding, int startIndex)
      Stores a list of normals in the cache .