public void setMesh(Mesh mesh) {
        if (mesh == null) {
            throw new IllegalArgumentException();
        }

        this.mesh = mesh;
        setBoundRefresh();

        if (isGrouped()) {
            groupNode.onMeshChange(this);
        }
    }
Sets the mesh to use for this geometry when rendering.

@param mesh the mesh to use for this geometry

@throws IllegalArgumentException If mesh is null
jme3-core/src/main/java/com/jme3/scene/Geometry.java