Class BlendShape


  • public final class BlendShape
    extends Table
    • Constructor Detail

      • BlendShape

        public BlendShape()
    • Method Detail

      • getRootAsBlendShape

        public static BlendShape getRootAsBlendShape​(java.nio.ByteBuffer _bb)
      • getRootAsBlendShape

        public static BlendShape getRootAsBlendShape​(java.nio.ByteBuffer _bb,
                                                     BlendShape obj)
      • __init

        public void __init​(int _i,
                           java.nio.ByteBuffer _bb)
      • __assign

        public BlendShape __assign​(int _i,
                                   java.nio.ByteBuffer _bb)
      • name

        public long name()
        The name of this blend shape.
      • vertexData

        public int vertexData​(int j)
        Contents vertex data of mesh vertices but with positions and normals adjusted to match this blend shape. Store only those vertices that differ from mesh vertices in attributes beyond Tangent.
      • vertexDataLength

        public int vertexDataLength()
      • vertexDataAsByteBuffer

        public java.nio.ByteBuffer vertexDataAsByteBuffer()
      • vertexDataInByteBuffer

        public java.nio.ByteBuffer vertexDataInByteBuffer​(java.nio.ByteBuffer _bb)
      • vertexIndices32

        public long vertexIndices32​(int j)
        Indices of fully stored vertices. Will either be an array of 16-bit or 32-bit values.
      • vertexIndices32Length

        public int vertexIndices32Length()
      • vertexIndices32AsByteBuffer

        public java.nio.ByteBuffer vertexIndices32AsByteBuffer()
      • vertexIndices32InByteBuffer

        public java.nio.ByteBuffer vertexIndices32InByteBuffer​(java.nio.ByteBuffer _bb)
      • vertexIndices16

        public int vertexIndices16​(int j)
      • vertexIndices16Length

        public int vertexIndices16Length()
      • vertexIndices16AsByteBuffer

        public java.nio.ByteBuffer vertexIndices16AsByteBuffer()
      • vertexIndices16InByteBuffer

        public java.nio.ByteBuffer vertexIndices16InByteBuffer​(java.nio.ByteBuffer _bb)
      • tangentData

        public int tangentData​(int j)
        Contains Tangent data that is necessary to restore original values of blend shape vertices that differ from correspondent mesh vertices in Tangent attribute only OR indentical ones.
      • tangentDataLength

        public int tangentDataLength()
      • tangentDataAsByteBuffer

        public java.nio.ByteBuffer tangentDataAsByteBuffer()
      • tangentDataInByteBuffer

        public java.nio.ByteBuffer tangentDataInByteBuffer​(java.nio.ByteBuffer _bb)
      • tangentIndices32

        public long tangentIndices32​(int j)
        Indices of vertices that differ in Tangent OR indentical ones. Will either be an array of 16-bit or 32-bit values.
      • tangentIndices32Length

        public int tangentIndices32Length()
      • tangentIndices32AsByteBuffer

        public java.nio.ByteBuffer tangentIndices32AsByteBuffer()
      • tangentIndices32InByteBuffer

        public java.nio.ByteBuffer tangentIndices32InByteBuffer​(java.nio.ByteBuffer _bb)
      • tangentIndices16

        public int tangentIndices16​(int j)
      • tangentIndices16Length

        public int tangentIndices16Length()
      • tangentIndices16AsByteBuffer

        public java.nio.ByteBuffer tangentIndices16AsByteBuffer()
      • tangentIndices16InByteBuffer

        public java.nio.ByteBuffer tangentIndices16InByteBuffer​(java.nio.ByteBuffer _bb)
      • createBlendShape

        public static int createBlendShape​(FlatBufferBuilder builder,
                                           long name,
                                           int vertex_dataOffset,
                                           int vertex_indices32Offset,
                                           int vertex_indices16Offset,
                                           int tangent_dataOffset,
                                           int tangent_indices32Offset,
                                           int tangent_indices16Offset)
      • startBlendShape

        public static void startBlendShape​(FlatBufferBuilder builder)
      • addVertexData

        public static void addVertexData​(FlatBufferBuilder builder,
                                         int vertexDataOffset)
      • createVertexDataVector

        public static int createVertexDataVector​(FlatBufferBuilder builder,
                                                 byte[] data)
      • createVertexDataVector

        public static int createVertexDataVector​(FlatBufferBuilder builder,
                                                 java.nio.ByteBuffer data)
      • startVertexDataVector

        public static void startVertexDataVector​(FlatBufferBuilder builder,
                                                 int numElems)
      • addVertexIndices32

        public static void addVertexIndices32​(FlatBufferBuilder builder,
                                              int vertexIndices32Offset)
      • createVertexIndices32Vector

        public static int createVertexIndices32Vector​(FlatBufferBuilder builder,
                                                      int[] data)
      • startVertexIndices32Vector

        public static void startVertexIndices32Vector​(FlatBufferBuilder builder,
                                                      int numElems)
      • addVertexIndices16

        public static void addVertexIndices16​(FlatBufferBuilder builder,
                                              int vertexIndices16Offset)
      • createVertexIndices16Vector

        public static int createVertexIndices16Vector​(FlatBufferBuilder builder,
                                                      short[] data)
      • startVertexIndices16Vector

        public static void startVertexIndices16Vector​(FlatBufferBuilder builder,
                                                      int numElems)
      • addTangentData

        public static void addTangentData​(FlatBufferBuilder builder,
                                          int tangentDataOffset)
      • createTangentDataVector

        public static int createTangentDataVector​(FlatBufferBuilder builder,
                                                  byte[] data)
      • createTangentDataVector

        public static int createTangentDataVector​(FlatBufferBuilder builder,
                                                  java.nio.ByteBuffer data)
      • startTangentDataVector

        public static void startTangentDataVector​(FlatBufferBuilder builder,
                                                  int numElems)
      • addTangentIndices32

        public static void addTangentIndices32​(FlatBufferBuilder builder,
                                               int tangentIndices32Offset)
      • createTangentIndices32Vector

        public static int createTangentIndices32Vector​(FlatBufferBuilder builder,
                                                       int[] data)
      • startTangentIndices32Vector

        public static void startTangentIndices32Vector​(FlatBufferBuilder builder,
                                                       int numElems)
      • addTangentIndices16

        public static void addTangentIndices16​(FlatBufferBuilder builder,
                                               int tangentIndices16Offset)
      • createTangentIndices16Vector

        public static int createTangentIndices16Vector​(FlatBufferBuilder builder,
                                                       short[] data)
      • startTangentIndices16Vector

        public static void startTangentIndices16Vector​(FlatBufferBuilder builder,
                                                       int numElems)