public void setMode(Mode mode) {
        this.mode = mode;
        updateCounts();
    }
Change the Mesh's mode. By default the mode is {@link Mode#Triangles}.

@param mode The new mode to set

@see Mode
jme3-core/src/main/java/com/jme3/scene/Mesh.java