[Top] [Prev] [Next] [Bottom]

8.5 Add object to drawing list: set3_object

Calling Sequence

set3_object(drawing_function, [arg1,arg2,...])

Description

Set up to trigger a call to draw3, adding a call to the3D display list of the form:

DRAWING_FUNCTION ( [ARG1, ARG2, ...]))

When draw3 calls DRAWING_FUNCTION, the external variable draw3_ will be non-zero, so DRAWING_FUNCTION can be written like this:

def drawing_function(arg) : if (draw3_) :
arg1= arg [0]
arg1= arg [1]
...
...<calls to get3_xy, sort3d, get3_light, etc.>...
...<calls to graphics functions plfp, plf, etc.>...
return
...<verify args>...
...<do orientation and lighting independent calcs>...
set3_object (drawing_function, [arg1,arg2,...])


[Top] [Prev] [Next] [Bottom]

support@icf.llnl.gov
Copyright © 1997,Regents of the University of California. All rights reserved.