diff --git a/bin/dawn_tweak b/bin/dawn_tweak index 0b73846536c48023a94d8c6291f6e869c2bac37c..35e6ea0baec64b933a1c372e9ced9533e5ae03cf 100755 --- a/bin/dawn_tweak +++ b/bin/dawn_tweak @@ -99,6 +99,20 @@ do shift # past argument shift # past value ;; + --light-theta) + echo "updating drawing to ${2}" + sed -i '19d' ${DAWN_RUN_DIR}/${OUT_FILE} + sed -i '19i'${2} ${DAWN_RUN_DIR}/${OUT_FILE} + shift # past argument + shift # past value + ;; + --light-phi) + echo "updating drawing to ${2}" + sed -i '18d' ${DAWN_RUN_DIR}/${OUT_FILE} + sed -i '18i'${2} ${DAWN_RUN_DIR}/${OUT_FILE} + shift # past argument + shift # past value + ;; -i|--input) OUT_FILE="$2" shift # past argument diff --git a/scripts/view1/generate_eps b/scripts/view1/generate_eps index 033a5d97a80737281fbeca8163b55d81ef1d89b2..fdc5c762823b84c6f3d089e68f057829aa950113 100755 --- a/scripts/view1/generate_eps +++ b/scripts/view1/generate_eps @@ -48,20 +48,20 @@ set -- "${POSITIONAL[@]}" # restore positional parameters dawncut -1 0 0 1 ${INPUT_FILE} ${FILE_TAG}.prim # dawncut 1 0 0 1 ${INPUT_FILE} ${FILE_TAG}_temp0.prim # dawncut -1 0 0 1 ${FILE_TAG}_temp0.prim ${FILE_TAG}.prim -../../bin/dawn_tweak --mag 10 --draw 4 --theta 165 --phi 75 +../../bin/dawn_tweak --mag 10 --draw 3 --theta 165 --phi 75 --light-theta 180 --light-phi 90 dawn -d ${FILE_TAG}.prim ps2pdf ${FILE_TAG}.eps ${FILE_TAG}_full.pdf gs -o ${FILE_TAG}.pdf -sDEVICE=pdfwrite \ -c "[/CropBox [51 250 550 590] /PAGES pdfmark" \ -f ${FILE_TAG}_full.pdf -pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox -thinlinemode solid -aaVector yes +pdftoppm ${FILE_TAG}.pdf ${FILE_TAG} -png -singlefile -cropbox -thinlinemode solid -aaVector yes -r 600 # Top view dawncut 0 -1 0 1 ${INPUT_FILE} ${FILE_TAG}.prim # dawncut 0 1 0 1 ${INPUT_FILE} ${FILE_TAG}_temp0.prim # dawncut 0 -1 0 1 ${FILE_TAG}_temp0.prim ${FILE_TAG}.prim -../../bin/dawn_tweak --mag 10 --theta 270 --phi 90 +../../bin/dawn_tweak --mag 10 --draw 4 --theta 270 --phi 90 dawn -d ${FILE_TAG}.prim ps2pdf ${FILE_TAG}.eps ${FILE_TAG}_top_full.pdf gs -o ${FILE_TAG}_top.pdf -sDEVICE=pdfwrite \