22.05.2014 Views

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

CERN Program Library Long Writeup W5013 - CERNLIB ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

HIDE is ON, the detector can be exploded (BOMB), clipped with different shapes (CVOL), and some of<br />

its parts can be shifted from their original position (SHIFT). When HIDE is ON, if the drawing requires<br />

more than the available memory, the program will evaluate and display the number of missing words (so<br />

that the user can increase the size of its ZEBRA store). Finally, at the end of each drawing (with HIDE<br />

on), the program will print messages about the memory used and statistics on the volumes’ visibility. The<br />

following commands will produce the drawing of a green volume, specified by NAME, without using the<br />

hidden line removal technique, using the hidden line removal technique, with different linewidth and colour<br />

(red), with solid colour, with shading of surfaces, and without edges. Finally, some examples are given for<br />

the ray-tracing. (A possible string for the NAME of the volume can be found using the command DTREE).<br />

EXAMPLE -<br />

satt * seen -2<br />

satt NAME colo 3<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

dopt hide on<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

satt NAME colo 2<br />

satt NAME lwid 4<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

dopt shad on<br />

satt * lwid 1<br />

satt NAME fill 1<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

satt NAME fill 3<br />

drawNAME 40 40 0 10 10 .01 .01<br />

next<br />

dopt edge off<br />

drawNAME 40 40 0 10 10 .01 .01<br />

dopt rayt on<br />

satt * fill 20<br />

dopt mapp 1<br />

drawNAME 40 40 0 10 10 .01 .01<br />

dopt proj pers<br />

persp NAME 500<br />

drawNAME 40 40 0 10 10 1 1<br />

valcut 100 100 100<br />

dopt mapp 0<br />

dopt user on<br />

satt NAM1 seen 0<br />

satt NAM2 colo 2<br />

drawNAME 40 40 0 10 10 5 5<br />

3.2 SPOT xlpos ylpos zlpos inten<br />

XLPOS R “x coordinate of light source”<br />

YLPOS R “y coordinate of light source”<br />

ZLPOS R “z coordinate of light source”<br />

INTEN I “intensity of light source”<br />

361 XINT002 – 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!