Class SoTangentElement


  • public class SoTangentElement
    extends SoReplacedElement
    Allows read-only access to the top element in the state. This class allows read-only access to the top element in the state to make accessing several values in it more efficient. Individual values must be accessed through this instance.

    SoTangent, SoVertexProperty

    • Method Detail

      • getClassStackIndex

        @Deprecated(since="9.3.0.0")
        public static int getClassStackIndex()
        Deprecated.
        As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)
        Returns the stack id for this element. ] *
      • getInstance

        public static SoTangentElement getInstance​(SoState state)
        Returns the top (current) instance of the element in the state.
      • get

        public SbVec3f get​(int index)
        Returns the indexed tangent from an element.
      • getNum

        public int getNum()
        Returns the number of tangent vectors in an instance.
      • set

        public static void set​(SoState state,
                               SoNode node,
                               SbVec3f[] tangents)
        Sets the current tangents.