#!/usr/bin/env bash # End-to-end demo: run the full HiTOPS pipeline on the bundled HY3D example # meshes (adaptive carrier -> SDF -> SQ fitting -> curvature atoms -> mapping). # # Usage: # bash scripts/run_example.sh [OUTPUT_DIR] # # Default OUTPUT_DIR is ./outputs/example (git-ignored). set -euo pipefail HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" export PYTHONPATH="${HERE}:${PYTHONPATH:-}" OUT="${1:-${HERE}/outputs/example}" mkdir -p "${OUT}" echo "[run_example] repo = ${HERE}" echo "[run_example] examples = ${HERE}/examples/hy3d/00 (5 meshes)" echo "[run_example] output = ${OUT}" python "${HERE}/scripts/run_batch_sqfit.py" \ --mesh_root "${HERE}/examples/hy3d" \ --shard 00 \ --output_root "${OUT}" \ --no_isolate echo "[run_example] done -> per-UID results under ${OUT}//mesh_mapping_v8/"