void
kgeom_blast_object(kgeom_object *object)
none
Note that geometry services will free all the primitives and data pointers within the geometry object. Since geometry services will try to free all memory pointed to by the geometry object, be careful not to place any static primitives or point to static arrays of data from within the geometry object. If geometry services tries to free a statically allocated pieces of memory, it will result in a fatal error.
If you wish to keep any component of the geometry
object in memory, simply remove it from the geometry
object prior to calling this function. For instance,
to keep a primitive from an object in memory after
the object has been destroyed, that primitive could
first be removed with the
kgeom_remove_primitive()
function.
Similarly, to keep a particular array of data from a
primitive in memory after the associated primitive
has been destroyed, the pointer to that array could
be assigned to NULL. This routine will only free the
primitives and data pointers which are seen within
the object.
none
none
$DATASERV/objects/library/kgeom/src/object.c