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.

Geant 3.15 GEANT User’s Guide DRAW110<br />

Origin : R.Brun, A.McPherson, P.Zanarini Submitted: 15.08.83<br />

Revision : S.Giani Revised: 11.12.92<br />

Documentation : P.Zanarini, S.Giani<br />

Drawing a Volume – Case 1<br />

CALL GDRAW<br />

(CHNAME,THETA,PHI,PSI,U0,V0,SU,SV)<br />

Draws an orthographic parallel projection or a perspective projection of volume CHNAME according to the<br />

options set via the routine GDOPT and all its visible descendants (see routine GSATT to alter the visibility of<br />

a volume) at position U0,V0 (user coordinates), with the scale factors SU and SV; the object is seen from<br />

THETA and PHI angles, and the resulting 2D projection is rotated by an angle PSI on the screen plane. These<br />

parameters, as well as zoom parameters set by GDZOOM define the current view parameters, and they are<br />

copied in the common /GCDRAW/. Attributes like colour, surface fill, line width, line style, visibility, etc.<br />

can be set by calling the GSATT routine for CHNAME and its descendants [GEOM 500]. An example of the<br />

result of the call:<br />

CALL GDRAW(’ARM ’,40.,40.,0.,nx,ny,0.015,0.015)<br />

is given in fig 8 for various values of the attributes and graphic options.<br />

default drawing<br />

hidden lines removed<br />

surface shading<br />

perspective view<br />

Figure 8: Examples of use of GDRAW<br />

Drawing with hidden line removal and surface fill shading is also possible, but the drawing time may increase<br />

substantially for complicated objects.<br />

When using the interactive interface it is possible to cut the object to be drawn with cutting volumes (command<br />

CVOL). This is particularly useful to visualise the contents of an object drawn with hidden line removal.<br />

74 DRAW110 – 1

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

Saved successfully!

Ooh no, something went wrong!