--- ray/src/util/objview.csh 1992/12/23 11:56:41 2.2 +++ ray/src/util/objview.csh 1996/02/09 12:56:59 2.5 @@ -7,9 +7,10 @@ set tmpdir=/usr/tmp set octree=$tmpdir/ov$$.oct set tmpfiles="$octree" +if ( ! $?RVIEW ) set RVIEW="rview" onintr quit -oconv - $* > $octree <<_EOF_ +oconv - $argv[*]:q > $octree <<_EOF_ void glow dim 0 0 4 .1 .1 .15 0 dim source background 0 0 4 0 0 1 360 void light bright 0 0 3 1000 1000 1000 @@ -18,9 +19,11 @@ bright source sun2 0 0 4 .3 1 1 5 bright source sun3 0 0 4 -1 -.7 1 5 _EOF_ +if ( $status ) goto quit + set vp=`getinfo -d <$octree|rcalc -e '$1=$1-3.5*$4;$2=$2-3.5*$4;$3=$3+2.5*$4'` -rview -av .2 .2 .2 -vp $vp -vd 1 1 -.5 -vv 15 -vh 15 $octree +$RVIEW -av .2 .2 .2 -vp $vp -vd 1 1 -.5 -vv 15 -vh 15 $octree quit: rm -f $tmpfiles