File indexing completed on 2026-04-09 07:49:01
0001
0002
0003 usage(){ cat << EON
0004 cxr_arglist.sh
0005 ===============
0006
0007 Use the CSGOptiXRenderTest --arglist option
0008 to create multiple snapshot views of a geometry
0009 from a single geometry load.
0010
0011 Note that with repeated global geometry that
0012 is currently not instanced such as solidXJfixture
0013 the apparent viewpoints are all over the place despite a fixed
0014 eye, look, up because there is no instance transform
0015 dedicated to the target geometry instead there is
0016 only the global identity transform.
0017
0018 EON
0019 }
0020
0021
0022 moi=solidXJfixture
0023 min=0
0024 max=63
0025
0026 MOI=${MOI:-$moi}
0027 MIN=${MIN:-$min}
0028 MAX=${MAX:-$max}
0029
0030 global_repeat_arglist(){ for i in $(seq $MIN $MAX ) ; do echo $MOI:$i ; done ; }
0031 tangential_repeat_arglist(){ for i in $(seq $MIN $MAX ) ; do echo $MOI:$i:-3 ; done ; }
0032
0033 all_mname_arglist()
0034 {
0035 local mname=$(Opticks_getFoundryBase)/CSGFoundry/meshname.txt
0036
0037 cat $mname | grep -v Flange | grep -v _virtual | sort | uniq
0038 }
0039
0040
0041 path=$TMP/cxr_global/$MOI.txt
0042 mkdir -p $(dirname $path)
0043
0044 if [ "$MOI" == "ALL" ]; then
0045 all_mname_arglist > $path
0046 else
0047 tangential_repeat_arglist > $path
0048
0049 fi
0050
0051 echo path $path
0052 cat $path
0053
0054
0055 EYE=2,-1,-1 UP=1,0,0 TMIN=0.1 CAM=1 MOI=$MOI ARGLIST=$path ./cxr.sh
0056