NAME
cxGeoRoot
- set the current object to the root object.
C SPECIFICATION
#include <cx/Geometry.h>
void cxGeoRoot()
FORTRAN SPECIFICATION
subroutine cxGeoRoot
DESCRIPTION
This function makes the root object the current object. The root object
is a special grouping node that is created automatically when the geometry
library is initialized. All subsequently defined objects will be
descendents of the root object.
This function is often used in a particular sequence to entirely replace
previously defined geometry:
cxGeometry *geo; /* handle to geometry object */
/* allocate the new geometry object and select it */
geo = cxGeoNew();
cxGeoBufferSelect(geo);
/* delete the previously defined geometry */
cxGeoRoot();
cxGeoDelete();
/* define new geometry here */
/* close the buffer */
cxGeoBufferClose(geo);
/* output the new geometry */
SEE ALSO
cxGeoInit(3E),
cxGeoNew(3E),
cxGeoBufferSelect(3E),
cxGeoDelete(3E),
cxGeoBufferClose(3E)
Last modified: Mon Nov 18 13:49:16 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996