| # Blender(bpy)可视化超点 / 语义 GT:写 PLY → 导入 → 可选 PNG + blend | |
| set -euo pipefail | |
| HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| export HOME="${BLENDER_HOME_OVERRIDE:-$HERE/_tools/blender_home}" | |
| mkdir -p "$HOME/.config/blender" | |
| BLENDER_BIN="${BLENDER_BIN:-$HERE/_tools/blender-4.2.2-linux-x64/blender}" | |
| if [[ ! -x "$BLENDER_BIN" ]]; then | |
| echo "未找到 Blender,请设置 BLENDER_BIN 或解压 portable 到 $HERE/_tools/blender-4.2.2-linux-x64/" >&2 | |
| exit 1 | |
| fi | |
| exec "$BLENDER_BIN" --background --python "$HERE/blender_visualize_superpoints.py" -- "$@" | |