my1=$5; my2=$6; my3=$7;
mz1=$8; mz2=$9; mz3=${10};
mirror=1; shift 10;;
- -A) ab=1;
- anr=$2; cutoff=$3; shift 3;;
+ -A) ab=$2; shift 2;
+ ((cnt=1))
+ while [ $cnt -le $ab ]; do
+ anr[$cnt]=$1; shift 1;
+ ((cnt+=1))
+ done
+ cutoff=$1; shift 1;;
*)
echo "options:"
echo "########"
fi
# auto bonds
- if [ "$ab" = "1" ]; then
+ if [ "$ab" != "0" ]; then
+ ((cnt=1))
+ while [ $cnt -le $ab ]; do
+ anr=${anr[$cnt]}
+
((tmp=anr+1))
line="`sed -n ${tmp}p $file`"
aX=`echo $line | awk '{ print $2 }'`
}
}' >> temp.pov
+
+ ((cnt+=1))
+ done
fi
# add camera and light source