public void generateBindPose() {
        VertexBuffer pos = getBuffer(Type.Position);
        if (pos == null || getBuffer(Type.BoneIndex) == null) {
            // ignore, this mesh doesn't have positional data
            // or it doesn't have bone-vertex assignments, so it's not animated
            return;
        }

        VertexBuffer bindPos = new VertexBuffer(Type.BindPosePosition);
        bindPos.setupData(Usage.CpuOnly,
                pos.getNumComponents(),
                pos.getFormat(),
                BufferUtils.clone(pos.getData()));
        setBuffer(bindPos);

        // XXX: note that this method also sets stream mode
        // so that animation is faster. this is not needed for hardware skinning
        pos.setUsage(Usage.Stream);

        VertexBuffer norm = getBuffer(Type.Normal);
        if (norm != null) {
            VertexBuffer bindNorm = new VertexBuffer(Type.BindPoseNormal);
            bindNorm.setupData(Usage.CpuOnly,
                    norm.getNumComponents(),
                    norm.getFormat(),
                    BufferUtils.clone(norm.getData()));
            setBuffer(bindNorm);
            norm.setUsage(Usage.Stream);
        }

        VertexBuffer tangents = getBuffer(Type.Tangent);
        if (tangents != null) {
            VertexBuffer bindTangents = new VertexBuffer(Type.BindPoseTangent);
            bindTangents.setupData(Usage.CpuOnly,
                    tangents.getNumComponents(),
                    tangents.getFormat(),
                    BufferUtils.clone(tangents.getData()));
            setBuffer(bindTangents);
            tangents.setUsage(Usage.Stream);
        }// else hardware setup does nothing, mesh already in bind pose

    }
Generates the {@link Type#BindPosePosition}, {@link Type#BindPoseNormal},
and {@link Type#BindPoseTangent}
buffers for this mesh by duplicating them based on the position and normal
buffers already set on the mesh.
This method does nothing if the mesh has no bone weight or index
buffers.
jme3-core/src/main/java/com/jme3/scene/Mesh.java