Install and run
There are no releases yet; Workpiece is built from source.
Build and run
You need a Rust toolchain of version 1.95 or newer (install with rustup) and a C compiler. Tested on Linux only (Ubuntu); macOS and Windows have not been tried by the authors.
On a fresh Debian or Ubuntu system:
sudo apt install build-essential git
# To run the app: the window system and OpenGL libraries, which the app loads when it starts
# (eframe/winit/glutin open them with dlopen, so they are not link-time dependencies):
sudo apt install libgl1 libegl1 libx11-6 libxcursor1 libxi6 libxrandr2 libxkbcommon0 libxkbcommon-x11-0 libwayland-client0
The package names of the second line are the Debian names of the libraries the binary tries to load (libEGL, libX11, libXi, libxkbcommon, libxkbcommon-x11, Wayland); they have not been tried on a fresh install.
git clone https://github.com/geop-cad/Workpiece.git
cd Workpiece
# The desktop app (optimized build: the geometry is slow without the optimizer)
cargo run --release -p workpiece-app
cargo run --release -p workpiece-app -- part.wpc # open a part file
# The command line
cargo build --release -p workpiece-cli
target/release/workpiece kinds # the kinds of steps and their arguments
target/release/workpiece make recipe.json -o part.wpc --report report.json
target/release/workpiece report part.wpc # build a part there is, and say what came of it
# A part from Python (builds the command line first; needs Python 3)
cargo build --release -p workpiece-cli
PYTHONPATH=python python3 agent/examples/flange.py # or: pip install ./python, which also builds both programs
WORKPIECE_DEMO=1 cargo run --release -p workpiece-app opens a small assembly instead of an empty part (WORKPIECE_DEMO also takes sketch, blends and joints). The app keeps its settings and library of materials in a configuration folder, which WORKPIECE_CONFIG_DIR overrides.