Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:58

0001 #!/bin/bash -l 
0002 usage(){ cat << EOU
0003 CSGPrimTest.sh
0004 =================
0005 
0006 ::
0007  
0008     PY=1 ./CSGPrimTest.sh 
0009          use python script rather thah default binary 
0010 
0011     ELV=103 ./CSGPrimTest.sh 
0012          ELV SBitSet prim selection based on meshIdx with CSGCopy::Select  
0013          first character t means NOT (tilde)
0014 
0015 
0016 The argument is used by opticks-switch-key to set the OPTICKS_KEY selecting 
0017 the geometry to use. 
0018 
0019 old
0020     some old reference geometry 
0021 new
0022     recent addition
0023 remote
0024     grabbed CSGFoundry 
0025     (cx:./cf_grab.sh updates this remote geometry via rsync)
0026 
0027 asis
0028     OPTICKS_KEY 
0029 last
0030     latest development version  
0031 
0032 EOU
0033 }
0034 
0035 default=remote
0036 arg=${1:-$default}
0037 
0038 opticks-switch-key $arg 
0039 
0040 if [ -n "$PY" ]; then 
0041      ${IPYTHON:-ipython} -i --pdb -- tests/CSGPrimTest.py 
0042 else
0043     bin=CSGPrimTest 
0044 
0045     if [ -n "$DEBUG" ]; then 
0046        if [ "$(uname)" == "Darwin" ]; then
0047            lldb__ $bin
0048        else
0049            gdb $bin
0050        fi
0051     else
0052        $bin
0053     fi 
0054 fi
0055 
0056 
0057