FuMesh for Linux (x86-64)

Run it from this folder:

    ./FuMesh

To add it to your applications menu, copy this folder somewhere permanent (for
example ~/.local/opt/FuMesh), then:

    mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/256x256/apps
    sed "s|^Exec=FuMesh|Exec=\"$(printf %s "$PWD" | sed 's/[&|]/\\&/g')/FuMesh\"|" fumesh.desktop > ~/.local/share/applications/fumesh.desktop
    cp fumesh.png ~/.local/share/icons/hicolor/256x256/apps/fumesh.png
    xdg-mime install --novendor fumesh-project.xml
    update-desktop-database ~/.local/share/applications

FuMesh then opens .fumesh projects when you double-click them, and appears
under "Open with" for STL, OBJ, PLY, 3MF, glTF (.glb, .gltf) and OFF files.
fumesh-project.xml also names the PLY and OFF file types, which many systems
don't know yet. You can also drop files onto
its window, or pass them on the command line: ./FuMesh model.stl

Check that everything works on your system:

    ./FuMesh --self-test

FuMesh runs on X11 and on Wayland. Qt picks the right one; to force one, start
it with QT_QPA_PLATFORM=xcb (X11) or QT_QPA_PLATFORM=wayland. OpenGL 3.2 or
newer is needed (Mesa or the GPU vendor's driver).

On X11 (and with QT_QPA_PLATFORM=xcb) Qt also needs the xcb-cursor library,
which some systems don't install. Without it FuMesh stops at the start with
"xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin".
Install it with your package manager:

    sudo apt install libxcb-cursor0       # Ubuntu, Debian
    sudo dnf install xcb-util-cursor      # Fedora
    sudo pacman -S xcb-util-cursor        # Arch

FuMesh is free software under the GNU GPL v3 (see LICENSE). The licenses of the
bundled components are listed in THIRD_PARTY_LICENSES.md.
