File size: 850 Bytes
0e4e948
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/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}/<uid>/mesh_mapping_v8/"