~mht/surcut

ref: 0dbc35cd48d7238ffa3ae1b1cd3effe59f237622 surcut/find-good-models.sh -rwxr-xr-x 268 bytes
0dbc35cd — Martin Hafskjold Thoresen Only optionally do the force cutoff thing 1 year, 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

MODEL_DIR="./meshes"
MODELS=$(find "$MODEL_DIR" -type f -iname "*.obj")

for model in $MODELS; do
  build/size -t $model 2>/dev/null
  if [[ $? == 0 ]]; then
    build/evaluate $model -i100 -r8
  else
    printf ">> File '%s' failed\n" "$model"
  fi
done