#!/bin/csh

#bev_void_c.csh
#Make color STL file for each void grain, and make bird's eye view maps/movie

set vg=a1				#name of void grain
set scale=5				#scale for bird's eye view map


set dir=051120d
set color=(255 0 128)		#color for stl file
set cn=MR				#Magenta-Red

echo $dir
cd C:/bubbling/$dir

echo MAKE STL file

si_stl_B ${vg}_MHL - 0 0 ${vg}.stl
stl_color ${vg}.stl $color ${vg}_${cn}.stl

echo MAKE  Bierds Eye View Images and Movie

stl_bev_C_SS ${vg}_${cn}.stl $scale 1 16 255 255 255 0 0 0 0 0 0 <<fin
0 0 ${vg}+X.tif
90 0 ${vg}+Y.tif
0 90 ${vg}+Z.tif
0 -90 ${vg}-Z.tif
60 -20 ${vg}_60_-20.tif
fin

stl_bev_C_GIF_SS  ${vg}_${cn}.stl $scale 1 16 255 255 255 0 0 0 0 0 0 ${vg}.gif <<fin
0 0 0 2 100
0 200 2 0 180
0 200 0 2 80
fin


echo OPERATIONS FOR SPHERULES COMPLETED

