#!/bin/bash
##
echo "Now dispconfigbygeomv in Util/Geomview"
####
colormap=./colormap
#
if [[ $# -gt 0  &&  "$1" == "-h" ]]; then
  cat <<'EOF'

  Usage: dispconfigbygeomv [-e|-a|-h][-s][-i] [outdir config1 config2 ...]
     where
       -h to display this message as you see now.
       -e to display config by each component base.
       -a to display all-in-one 
          If -e  nor -a is not given, only level 0~1 components are displayed
       -s skip drawing some planer surface (for fpolygon; since"
          if the surface is concave angle, geomview fails
          to draw it correctly (alpha!=1 will save the problem)
       -i to  display color index (correspondence betw media vs color.
       outdir is the output directory (default /tmp/$USER/Work)
       config* are config file such as config.Pb 
          made by drawconfig in Util. Default is /tmp/$USER/Work/config.*
          xx of config.xx must be a media name

  EOF
  exit ;
fi

###echo " entering into convconfig"
###
###source ./convconfig   $*
###
###
###if [[ $dispcolormap == "yes" ]]; then
###    $GEOMVIEW  $outdir/mediatext   
###fi
###
###	 
###$GEOMVIEW  `find $outdir -name '*.list' -print `
  
