+#
+# visualization script
+# author: frank.zirkelbach@physik.uni-augsburg.de
+#
+
+directory="doesnt_exist____for_sure"
+width="1024"
+height="768"
+radius="1.0"
+x0=""; y0=""; z0="";
+x1=""; y1=""; z1="";
+cx=""; cy=""; cz="";
+lx="0"; ly="-100"; lz="100";
+
+while [ "$1" ]; do
+ case "$1" in
+ -d) directory=$2; shift 2;;
+ -w) width=$2; shift 2;;
+ -h) height=$2; shift 2;;
+ -r) radius=$2; shift 2;;
+ -nll) x0=$2; y0=$3; z0=$4; shift 4;;
+ -fur) x1=$2; y1=$3; z1=$4; shift 4;;
+ -c) cx=$2; cy=$3; cz=$4; shift 4;;
+ -l) lx=$2; ly=$3; lz=$4; shift 4;;
+ -o) ortographic=1; shift 1;;
+ *)
+ echo "options:"
+ echo "########"
+ echo "directory to progress:"
+ echo " -d <directory> (mandatory)"
+ echo "png dim:"
+ echo " -w <width>"
+ echo " -h <height>"
+ echo "atom size:"
+ echo " -r <radius>"
+ echo "visualization volume:"
+ echo " -nll <x> <y> <z> (near lower left)"
+ echo " -fur <x> <y> <z> (far upper right)"
+ echo " -o (ortographic)"
+ echo "povray:"
+ echo " -c <x> <y> <z> (camera position)"
+ echo " -l <x> <y> <z> (light source)"
+ exit 1;;
+ esac
+done
+
+if [ ! -d $directory ] ; then
+ echo "no valid directory"
+ exit 1