/usr/share/doc/raster3d/examples/example8.script is in raster3d-doc 3.0-3-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/bash
#
# Demonstrate stereo3d script by making stereo pair of
# view down pore of LT B-pentamer
#
if [ "$TMPDIR" ]; then
tmp=$TMPDIR
else
tmp=/tmp
fi
export TMPDIR=$tmp
#
# First we make a VDW model of the B-pentamer itself
#
grep ' [DEFGH] ' LT.pdb > $TMPDIR/$$_temp.r3d
cat chaincolours.pdb $TMPDIR/$$_temp.r3d | balls -h > $TMPDIR/$$_balls.r3d
#
# Now we make a simple ribbon for the A2 domain
#
grep ' C ' LT.pdb | ribbon -h -d1 > $TMPDIR/$$_ribbon.r3d
#
# put 'em together with a view matrix
#
cat header8.r3d $TMPDIR/$$_balls.r3d $TMPDIR/$$_ribbon.r3d > $TMPDIR/$$_example8.r3d
#
# Now render it as a stereo pair
# Add a gamma correction before displaying
#
stereo3d -png < $TMPDIR/$$_example8.r3d | display -gamma 1.2 png:-
#
#
# Clean up
#
rm -f $TMPDIR/$$_temp.r3d $TMPDIR/$$_balls.r3d $TMPDIR/$$_ribbon.r3d $TMPDIR/$$_example8.r3d
|