NAME

cxGeoRoot - set the current object to the root object.
#include <cx/Geometry.h>

void cxGeoRoot()
subroutine cxGeoRoot
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 */
cxGeoInit(3E), cxGeoNew(3E), cxGeoBufferSelect(3E), cxGeoDelete(3E), cxGeoBufferClose(3E)
Last modified: Mon Nov 6 16:33:19 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996