#!/bin/ksh ## ## SCRIPT NAME: cyberware_plyTO3ds_run_bygui ## ## in $FEDIR/scripts ## where FEDIR=/apps/nns_com/fea ######################################################################## ## PURPOSE: To run the Cyberware 'ply23ds' translator --- with a GUI ## Directory-Navigator/File-Selector positioned at sample ## directory(ies) of Ply files. The user can change the ## directory (and file mask) to use their own Ply files. ## ## The Cyberware 'ply23ds' program can convert a PLY file into an ## AutoDesk 3DS (3D Studio Max) 3D-geometry-data file (ASCII?). ## ## This utility prompts for a fully-qualified input filename -- using ## a Tcl-Tk GUI interface for file navigation-and-selection. ## ##-------- ## Example Usage: ## This script was initially intended to give a quick way to convert Ply ## files, like sample human-models created by Cyberware 3D scanners, to ## 3DS files that can then be viewed with SGI 'perfly' or SIM 'VRMLview'. ## ## Also, the (ASCII?) 3DS file can be converted to an Inventor file, using the ## SGI-supplied '3dsToIv' utility program. Then the Inventor file can be ## decimated (polygon reduced) via the Jade interactive decimator --- and ## then converted to Division vdi-and-bgf files via the Clemson 'iv2stl' ## program and via the Division 'stl2vdi' translator. ## See script 'divadm_stl2vdi_bygui' ## which is similar to 'divadm_dxf2vdi_bygui'. ## ## Ref: www..cyberware.com ######################################################################## ## CALLED BY: 'cyberware3D_tools' script in $FEDIR/scripts ## actually, by 'cyberware3D_tools.chestdef' in $FEDIR/scripts ## ## which is called by ## '3d_tools' script in $FEDIR/scripts ## actually, by '3d_tools.chestdef' ## ## which is called by ## 'handytools' script in $FEDIR/scripts ## actually, by 'handytools.chestdef' in $FEDIR/scripts ## ## Site SGI toolchest-drawer path: ## ## SGI Toolchest -> ## HandyTools -> ## 3D AuxTools -> ## Cyberware 3D translators,viewer toolchest -> ## Run 'ply23ds' (with demo input or yours) ## ######################################################################## ## MAINTENANCE HISTORY: ## Written by: Blaise Montandon 20aug2004 Based on scripts ## 'cyberware_ply2dxf_run_bygui' ## in $FEDIR/scripts ## Updated by: Blaise Montandon 20aug2004 ######################################################################## ############################################################################# ## Setup to allow running outside of the nnsFEAmenu system. ############################################################################# if test "$FEDIR" = "" then FEDIR="/apps/nns_com/fea" fi # . $FEDIR/scripts/clearnns ############################################################################# ## SAVE 'this hostname' for host-checks and form titles. ############################################################################# THISHOST=`hostname` SGI_SERVER="engprd00" VIZ_SERVER="engvis00" ######################################################################## ## Popup a message via 'xconfirm' --- a sample to use in case this ## utility is de-activated for a period --- or to provide an ## informational message via 'xconfirm' rather than 'confirm.tk', which ## follows. ######################################################################## ## ## xconfirm -c -header "'ply23ds' File Translator - Warning" -B DISMISS \ ## -t "'ply23ds' File Translator:" \ ## -t " " \ ## -t " This 'ply23ds' Ply file translator utility is UNAVAILABLE" \ ## -t " AT THIS TIME." \ ## -t " " \ ## -t "Exiting." \ ## -icon warning > /dev/null ## ## exit ## ######################################################################## ######################################################################### ## INFORM THE USER ABOUT HOW THIS UTILITY WORKS --- ## via a pop-up message window (a foreground process) ## that can be dismissed when the user is ready to continue. ######################################################################### CONFIRM_TITLE="'ply23ds' File Translator" export CONFIRM_TITLE CONFIRM_TEXT="\ Ply File Translator - 'ply23ds': This 3D geometry data translator utility uses the Cyberware 'ply23ds' translator, to convert a Ply file to a 3DS 'polygonal format' file (ASCII?). Ply files are used by Cyberware to store data gathered by their 3D scanners. Reference: www.cyberware.com This utility provides you names of one or more directories of 'demo' Ply files. But you can specify your own directories of Ply files. ------------------- The PLY file format: ------------------- The Ply format is a relatively simple 3D file format, developed at Stanford University, that can be translated easily to other, industry-standard file formats. For details on the PLY file format, see the Stanford Graphics Lab at http://www.www-graphics.stanford.edu/ . The Ply format is rather unusual in that the top lines of a Ply file appear to be 'pure ASCII text', while the bottom of the file is 'binary' data. ---------------------------------- Cyberware Description of 'ply23ds' : ---------------------------------- Used to convert a PLY file into a 3D Studio file. Usage: ply23ds [-h] [-s] [-v] infile.ply outfile.3ds Variables: -h: Display help message -s: Split meshes if too big -v: Verbose infile.ply: PLY file for input outfile.3ds: 3D Studio output file --------------- SELECTING FILES: --------------- A Directory-Navigator-AND-File-Selector GUI is used to present a list of Ply files, for example, in a /local/scratch/$USER directory. OR, instead of navigating & selecting with the GUI, you may paste a full filename from a list in another window --- into the 'File Selection:' entry field in the file-selector GUI. --- The file-selector GUI returns after each translation, so you can quickly convert a batch of PLY files. Simply click the 'Cancel' button on the file-selector GUI when you are finished translating files. ------------ OUTPUT FILES: ------------ The (ASCII?) 3DS output file, 'temp.3ds', is put in a local directory, /local/scratch/$USER, if possible. (Alternative: user's home directory.) The use of a local directory keeps down network traffic and gives faster file I/O when creating and using the 3DS files. Furthermore, putting the output files 'locally' helps avoid accumulation of files in server directories. If you are doing a batch of translations, you can rename the 'temp.3ds' file before doing the next translation --- say by using 'mv' in a 'winterm' window. (Typically, there may be only one or a few in a batch of translations that you would really want to save to a unique name.) You can copy or move the new 3DS file(s) --- if you need to save them for a while in a file-system that is backed up --- for example, 'mv' to a /data/cvn78/cae/$USER directory. ---------------------------------- VIEWING THE INVENTOR FILE CONTENTS: ---------------------------------- You can use the SGI-supplied 'perfly' 3D file viewer utility, to view the 3D geometry contents of the 3DS file. Alternatively, you can use the SGI-supplied '3dsToIv' utility to convert the (ASCII?) 3DS file to an Inventor file, and then use the 'ivview' command to dynamically view the Inventor file of polygon data. In fact, the '3dsToIv' & 'ivview' programs are built into this utility --- to facilitate immediate, dynamic, graphical viewing of the contents of the 3DS file that is created from a PLY file. For a PLY -> 3DS -> Inventor file containing about 100,000 triangles, it may take more than 30 seconds for the shaded image to appear in the 'ivview' graphics window --- and for the function buttons and 'thumbwheels' to appear on the perimeter of the graphics window. --- Alternatively, another 'direct' 3DS viewer, besides 'perfly', is the SIM (Systems in Motion, Norway) 'VRMLview' program. Example site SGI toolchest-drawer path to 'VRMLview': SGI Toolchest -> Handy Tools -> 3D AuxTools -> VMRL-1&2 & DXF & 3DS ... 'VRMLview' toolchest -> Start 'VRMLview 3.0' (on demo input or yours) Example site SGI toolchest-drawer path to 'perfly': SGI Toolchest -> Handy Tools -> 3D AuxTools -> STL,IV,DXF,3DS,FLT ... 'perfly' viewer, converte toolchest -> STARTUP MENU for 'perfly' & related EXECUTABLES -> START 'perfly' (on demo input or yours) --- Another option is to read an Inventor file, created by '3dsToIv', into the 'Jade' interactive file decimator (polygon reducer) GUI-based utility. That utility has an interface that looks like the 'ivview' GUI, but with TWO graphics windows -- for the input Inventor file and for the 'decimated' version, which can be written to a new Inventor file. Example site SGI toolchest-drawer path to 'Jade': SGI Toolchest -> Handy Tools -> 3D AuxTools -> Poly Reducers -> 'Jade' polygon reducer toolchest ------------------------------------ EXAMPLE USE OF THIS 'ply23ds' UTILITY, with 'Jade', to create 'Division' models: ------------------------------------ This utility could give a quick way to convert a Ply file, like a human-model created by Cyberware 3D scanners, to an Inventor file, via '3dsToIv'. The Inventor file can be decimated (polygon reduced) via the 'Jade' interactive decimator --- and then converted to 'Division' vdi-and-bgf files via the Clemson 'iv2stl' program and via the Division 'stl2vdi' translator. --- YOU: --- If you have suggestions for improvement of this utility, please inform NN SGI Visualization Applications Support --- like the author of this utility, Blaise Montandon at 0-2301. To continue, click the 'Proceed' button." export CONFIRM_TEXT CONFIRM_GEOM="+080+080" CONFIRM_MINSIZE="150 100" export CONFIRM_GEOM CONFIRM_MINSIZE # CONFIRM_COLOR="plum2" # CONFIRM_COLOR="#EEAEEE" # CONFIRM_COLOR="#CC99CC" # CONFIRM_COLOR="#996699" # CONFIRM_COLOR="#AA77AA" CONFIRM_COLOR="#C090C0" export CONFIRM_COLOR # REPLY=`$FEDIR/tkGUIs/confirm.tk PROCEED CANCEL` REPLY=`$FEDIR/tkGUIs/confirm_scroll.tk PROCEED CANCEL` if test "$REPLY" = "CANCEL" then exit fi ######################################################################### ## SET var LOCDIR to /local/scratch/$USER --- if possible --- ## otherwise to $HOME. Is used below to name temporary files, like ## the 'temp.3ds' file, created from the 'ply23ds' translator. ######################################################################### . $FEDIR/scripts/set_localuserdir ######################################################################### ## INITIALIZE a directory-navigator/file-selector, for the user ## to specify the input file. ######################################################################### if test "$DIR_CYBERWARE" = "" then DIR_CYBERWARE="$FEDIR/3d_tools/cyberware_3Dtools.dir" fi FILSEL_MSG="\ PASTE a PLY FILENAME in the 'File Selection:' FIELD -OR- click the FILTER button & SELECT a PLY file from the file listbox. Then click 'OK' to translate the PLY FILE with 'ply23ds' --- and to convert the (ASCII?) 3DS to Inventor and view the Inventor file with 'ivview'. -OR- click 'Cancel' to exit. Some Ply files are in directories like ${SGI_SERVER}: $DIR_CYBERWARE/HUMANmodels/ ${SGI_SERVER}: $DIR_CYBERWARE/SAMPLEinout.dir/ Or perhaps your Ply files are in ${THISHOST}: /local/scratch/$USER/ ${SGI_SERVER}: $HOME/ ${SGI_SERVER}: /data/cvn78/cae/$USER/ ${VIZ_SERVER}: /division/.../.../ " # $DIR_CYBERWARE/SAMPLEinout.dir/ # $FEDIR/demos_ply/ FILSEL_NUMLINES="15" ####################### ## SET FILE DIR & MASK. ####################### ## FOR TESTING: # FILSEL_MASK="$FEDIR/demos_ply/*.ply" FILSEL_MASK="$DIR_CYBERWARE/HUMANmodels/*.ply*" # FILSEL_MASK="$DIR_CYBERWARE/HUMANmodels/*.ply*" # FILSEL_MASK="$DIR_CYBERWARE/SAMPLEinout.dir/*.ply*" # FILSEL_MASK="$FEDIR/demos_ply/*.ply*" DIRTEMP=`dirname "$FILSEL_MASK"` if test ! -d "$DIRTEMP" then if test -d "$LOCDIR" then FILSEL_MASK="${LOCDIR}/*.ply*" else FILSEL_MASK="$HOME/*.ply*" fi fi export FILSEL_MASK FILSEL_MSG FILSEL_NUMLINES # FILTER_AT_STARTUP=YES # export FILTER_AT_STARTUP ######################################################################## ######################################################################## ## START OF PROMPTING LOOP, FOR FILE SELECTION. ######################################################################## ######################################################################## # while true while : do ##################################################################### ## GET NAME OF USER-SELECTED Ply FILE. ##################################################################### FILEIN=`$FEDIR/tkGUIs/file_select_gui_ver2.tk` if test "${FILEIN}" = "" then # continue # break exit fi ######################################################################## ## CHECK THAT THE SELECTED FILE IS probably a Ply file (binary). ## IF NOT, return to the file selector. ######################################################################## FILE_TYPE=`file "$FILEIN"` ASCII_MATCH=`echo "$FILE_TYPE" | grep "ascii text"` if test ! "$ASCII_MATCH" = "" then REPLY=`xconfirm -c -header "'ply23ds' File Translator - Warning" \ -b Proceed -B GoBack \ -t "The file" \ -t " $FILEIN" \ -t "is not a binary file. File type:" \ -t " " \ -t "$FILE_TYPE" \ -t " " \ -t "Proceed (to try ply23ds anyway) or GoBack (try another or Cancel)." \ -icon warning` ############################################################ ## RETURN TO FILE-SELECTION PROMPT. ############################################################ if test "$REPLY" = "GoBack" then CURDIRNAME=`dirname "$FILEIN"` FILSEL_MASK="${CURDIRNAME}/*.ply*" export FILSEL_MASK # FILTER_AT_STARTUP=NO # export FILTER_AT_STARTUP continue fi fi ## END OF if test ! "$ASCII_MATCH" = "" ######################################################################### ## PREPARE LOCAL 'OUTLIST' FILENAME for list of 3DS files in $LOCDIR. ######################################################################### . $FEDIR/scripts/set_localoutlist rm -f $OUTLIST PLY_BYTES=`ls -l $FILEIN | awk '{print $5}'` PLY_MEG=`echo "scale = 6; $PLY_BYTES / 1000000" | bc -l` ######################################################################### ## TRANSLATE the Ply file with 'ply23ds'. ######################################################################### ## Description of 'ply23ds': ## ## Description: ## Used to convert a PLY file into a 3D Studio file. ## ## Usage: ## ply23ds [-h] [-s] [-v] infile.ply outfile.3ds ## ## Variables: ## -h: Display help message ## -s: Split meshes if too big ## -v: Verbose ## infile.ply: PLY file for input ## outfile.3ds: 3D Studio output file ## ######################################################################### OUTFILE_3DS="${LOCDIR}/temp.3ds" rm -f $OUTFILE_3DS PATH="${PATH}:$DIR_CYBERWARE/headus/bin" export PATH ## FOR TESTING: # set -x /usr/sbin/xwsh -bg midnightblue -fg white \ -title 'ply23ds_msgs (WAIT .... until ply23ds is done. To kill it, Close Me.)' \ -icontitle 'ply23ds_msgs' \ -geom 80x18+620+350 \ -e $DIR_CYBERWARE/headus/bin/ply23ds -s -v $FILEIN $OUTFILE_3DS # -e $DIR_CYBERWARE/bin/ply23ds -s -v $FILEIN $OUTFILE_3DS # -title 'ply23ds_msgs (WAIT .... until ply23ds is done. To kill it or TO PROCEED, Close Me.)' \ # -hold \ ######################################################################### ## Getting 'plyop not found' error. ######################################################################### ## ply23ds: Running 'plyop -v -sort -sf,65535 -sp,65535 "/apps/nns_com/fea/3d_tools/cyberware_3Dtools.dir/HUMANmodels/female2WB-25.ply" "/apps/nns_com/fea/3d_tools/cyberware_3Dtools.dir/HUMANmodels/female2WB-25.ply"' ## sh: plyop: not found ######################################################################### ## FOR TESTING: # set - ######################################################################## ## PUT a list of LOCDIR '.3ds' files in $OUTLIST. ######################################################################## echo " FILES with a '.3ds' suffix IN $LOCDIR: " > $OUTLIST ls -l $LOCDIR | grep '\.3ds.*$' >> $OUTLIST echo " ------------------------------ File $OUTFILE_3DS was created from file $FILEIN by script $0 ------------------------------ VIEWING CONTENTS OF 3DS FILES: You can use the SGI-supplied 'perfly' 3D file viewer utility, to view the 3D geometry contents of the (ASCII?) 3DS file. Alternatively, you can use the SGI-supplied '3dsToIv' utility to convert the (ASCII?) 3DS file to an Inventor file, and then user the 'ivview' command to dynamically view the Inventor file of polygon data. In fact, the '3dsToIv' & 'ivview' programs are built into this utility --- to facilitate immediate, dynamic, graphical viewing of the contents of the (ASCII?) 3DS file that is created from a PLY file. For a PLY -> 3DS -> Inventor file containing about 100,000 triangles, it may take more than 30 seconds for the shaded image to appear in the 'ivview' graphics window --- and for the function buttons and 'thumbwheels' to appear on the perimeter of the graphics window. --- Alternatively, another 'direct' 3DS viewer, besides 'perfly', is the SIM (Systems in Motion, Norway) 'VRMLview' program. Example site SGI toolchest-drawer path to 'VRMLview': SGI Toolchest -> Handy Tools -> 3D AuxTools -> VMRL-1&2 & CXF & 3DS ... 'VRMLview' toolchest -> Start 'VRMLview 3.0' (on demo input or yours) Example site SGI toolchest-drawer path to 'perfly': SGI Toolchest -> Handy Tools -> 3D AuxTools -> STL,IV,DXF,3DS,FLT ... 'perfly' viewer, converte toolchest -> STARTUP MENU for 'perfly' & related EXECUTABLES -> START 'perfly' (on demo input or yours) --- Another option is to read an Inventor file, created by '3dsToIv', into the 'Jade' interactive file decimator (polygon reducer) GUI-based utility. That utility has an interface that looks like the 'ivview' GUI, but with TWO graphics windows -- for the input Inventor file and for the 'decimated' version, which can be written to a new Inventor file. Example site SGI toolchest-drawer path to 'Jade': SGI Toolchest -> Handy Tools -> 3D AuxTools -> Poly Reducers -> 'Jade' polygon reducer toolchest ------------------------------------- EXAMPLE USE OF THIS 'ply23ds' UTILITY, with 'Jade', to create 'Division' models: ------------------------------------- This utility could give a quick way to convert a Ply file, like a human-model created by Cyberware 3D scanners, to an Inventor file, via '3dsToIv'. Then the Inventor file can be decimated (polygon reduced) via the 'Jade' interactive decimator --- and then converted to 'Division' vdi-and-bgf files via the Clemson 'iv2stl' program and via the Division 'stl2vdi' translator. -------------------------------------- " >> $OUTLIST ######################################################################## ## SHOW $OUTLIST. ######################################################################## WINX="10" WINY="10" export WINX WINY $FEDIR/scripts/shofil $OUTLIST ######################################################################## ## CONVERT (ASCII?) 3DS file to a binary Inventor file, $OUTFILE_IV --- ## for viewing with 'ivview'. ######################################################################## ## Use '3dsToIv'. Some '3dsToIv' help info follows. ######################################################################### ## README - 3dsToIv - Final - 7/26/95 ## ## Copyright Abaco 1994,1995 - written by Kovac Software. ## ____________________________________________________________________________ ## 3dsToIv version 1.0 7/26/95 Copyright (c) 1995 Abaco Systems, Inc. ## ## Call with questions Tel: (510) 494-0690 ## Fremont, CA, USA Fax: (510) 494-0893 or email: 3dsoftware@abaco.com ## ____________________________________________________________________________ ## ## 3dsToIv - converts 3DStudio model and scene files to Inventor 2.0 ## files. ## NAME ## 3dsToIv [-h] [ -l ] [-m] [-q ] [ -t ] [-v ] ## [- | [outfile] ] ## Where ## ## 3DStudio data file to convert. The file is a file with (.3ds). ## If is absent input comes from stdin. ## ## ## Inventor data file. If is absent output goes to stdout. ## ## ## -h Display usage guide ## ## -v Verbose ## ## -m List texture maps ## ## -l Do not include lights in output. ## ## -q Quiet, no output in screen. ## ## -t Do not include texture map information in output ## ## This translator converts Autodesk 3DStudio 3.0 files into Inventor 2.0 files. ## ## The translator will be bundled with SGI computers and available to SGI ## customers. It is a license from Abaco Systems to SGI for use by SGI customers. ## ## Currently the following are handled. ## ## Polygonal meshes (only type of geometry) ## Textures (the bitmap files must be in sgi (rgb) format in the same ## directory as the .3ds file) ## Lights ## ######################################################################### BYTES_3DS=`ls -l $OUTFILE_3DS | awk '{print $5}'` MEG_3DS=`echo "scale = 6; $BYTES_3DS / 1000000" | bc -l` OUTFILE_IV="${LOCDIR}/temp.iv" rm -f $OUTFILE_IV # if test -f /usr/sbin/3dsToIv # then # EXE_3dsToIv="/usr/sbin/3dsToIv" # else EXE_3dsToIv="$FEDIR/3d_tools/SGIiv.dir/bin/3dsToIv" # fi ## FOR TESTING: # set -x /usr/sbin/xwsh -bg midnightblue -fg white \ -title '3dsToIv_msgs (WAIT ... 3dsToIv takes time on a large file. To kill it, Close Me.)' \ -icontitle '3dsToIv_msgs' \ -geom 80x23+620+350 \ -e $EXE_3dsToIv "$OUTFILE_3DS" "$OUTFILE_IV" # -title '3dsToIv_msgs (WAIT ... 3dsToIv takes time on a large file. To kill it or TO PROCEED, Close Me.)' \ # -hold \ ## FOR TESTING: # set - if test ! -f "$OUTFILE_IV" then xconfirm -c -B DISMISS \ -header "'.bgf' Viewer - ERROR" \ -t "The '.iv' output file" \ -t "" \ -t " $OUTFILE_IV" \ -t "" \ -t "has NOT been created." \ -t "" \ -t "Exiting ..." \ -icon warning > /dev/null exit fi ######################################################################### ## VIEW the Inventor file $OUTFILE_IV with 'ivview'. ######################################################################### IV_BYTES=`ls -l $OUTFILE_IV | awk '{print $5}'` IV_MEG=`echo "scale = 6; $IV_BYTES / 1000000" | bc -l` CONFIRM_TITLE="'ivview' of '.iv' file from '.bgf file'" export CONFIRM_TITLE CONFIRM_TEXT="\ SELECT AN 'ivview' VIEW MODE: 1) 'Examiner' (virtual trackball) OR 2) 'Walk' ----------------------------------------------------------------------- The size of the binary '.iv' file $OUTFILE_IV is $IV_MEG Megabytes. The size of the intermediate ASCII? '.3ds' file $OUTFILE_3DS is $MEG_3DS Megabytes. The size of the binary '.ply' file $FILEIN is $PLY_MEG Megabytes. ----------------------------------------------------------------------- Use the '?' button in 'ivview' to see navigation details of the 'Examiner' mode versus the 'Walk' mode --- as well as info for two other modes ( 'Fly' and 'Plane' ) that are not implemented in 'ivview'." export CONFIRM_TEXT CONFIRM_GEOM="+080+080" CONFIRM_MINSIZE="150 100" export CONFIRM_GEOM CONFIRM_MINSIZE # CONFIRM_COLOR="plum2" # CONFIRM_COLOR="#EEAEEE" # CONFIRM_COLOR="#CC99CC" # CONFIRM_COLOR="#996699" # CONFIRM_COLOR="#AA77AA" # CONFIRM_COLOR="#C090C0" CONFIRM_COLOR="#F0C0F0" export CONFIRM_COLOR VIEW_MODE=`$FEDIR/tkGUIs/confirm.tk Examiner Walk Exit` # VIEW_MODE=`$FEDIR/tkGUIs/confirm_scroll.tk Examiner Walk Exit` if test "$VIEW_MODE" = "Exit" then exit fi VIEW_PARM="" if test "$VIEW_MODE" = "Walk" then VIEW_PARM="-w" fi ## FOR TESTING: # set -x ivview -geometry +10+10 $VIEW_PARM $OUTFILE_IV & # ivview -geometry +10+10 $VIEW_PARM $OUTFILE_IV ## FOR TESTING: # set - ######################################################################## ## RETURN TO FILE-SELECTION PROMPT. ######################################################################## sleep 4 CURDIRNAME=`dirname "$FILEIN"` # FILSEL_MASK="${CURDIRNAME}/*.p*" # FILSEL_MASK="${CURDIRNAME}/*" FILSEL_MASK="${CURDIRNAME}/*.ply*" export FILSEL_MASK FILSEL_MSG="\ SELECT *ANOTHER* PLY FILE ... for *TRANSLATING* WITH 'ply23ds' --- and converting 3DS to Inventor and viewing the Inventor file with 'ivview'. -OR- click 'Cancel' to exit. Some PLY files are in directories like ${SGI_SERVER}: $DIR_CYBERWARE/HUMANmodels/ ${SGI_SERVER}: $DIR_CYBERWARE/SAMPLEinout.dir/ Or perhaps your Ply files are in ${THISHOST}: /local/scratch/$USER/ ${SGI_SERVER}: $HOME/ ${SGI_SERVER}: /data/cvn78/cae/$USER/ ${VIZ_SERVER}: /division/.../.../ " # $DIR_CYBERWARE/SAMPLEinout.dir/ # $FEDIR/demos_ply/ FILSEL_NUMLINES="12" # FILTER_AT_STARTUP=NO # export FILTER_AT_STARTUP FILSEL_GEOM="+600+400" # FILSEL_GEOM="+700+500" export FILSEL_GEOM done ######################################################################## ## END OF prompting loop, for file name. ########################################################################