#! /bin/csh -f
# Last edited on 2008-02-04 20:39:51 by stolfi

set usage = "$0 STEP"

if ( $#argv != 1 ) then
  echo "usage: ${usage}"; exit 1
endif

set step = "$1"; shift;

set prog = "${STOLFIHOME}/programs/m3/Visibility/${M3PLATFORM}/Visibility"
set tpfile = "${STOLFIHOME}/projetcs/toposcope-3d/lplozada-2002-08-29/Certinho/16CELL/16cell-ran-re-re-re"
set stfile = "${STOLFIHOME}/projetcs/toposcope-3d/lplozada-2002-08-29/Certinho/16CELL/16cell-ran-re-re-re-c321-1000-final"
set otfile = "16cell"

cat path-300-${step}.from4 \
  | grep -v '#' \
  | egrep -v '^ *$' \
  | sed -e 's/$/ front/' \
  > .tmp.from4

nice ${prog} \
  -inFileTp $tpfile \
  -inFileSt $stfile \
  -outFile  $otfile\
  -fade -normalize 1.0d0 \
  -silhouette -projection perspective \
  -multiple \
  < .tmp.from4

echo "gzipping files..."
gzip ${otfile}-*-????.inc

