private void writeConnections(ShortBuffer indexBuf, Bone bone) {
        for (Bone child : bone.getChildren()) {
            // write myself
            indexBuf.put((short) skeleton.getBoneIndex(bone));
            // write the child
            indexBuf.put((short) skeleton.getBoneIndex(child));

            this.writeConnections(indexBuf, child);
        }
    }
The method writes the indexes for the connection vertices. Used in non-length mode.
@param indexBuf
           the index buffer
@param bone
           the bone
jme3-core/src/main/java/com/jme3/scene/debug/SkeletonWire.java