DATASERV (koldgeom) functions
LIBRARY ROUTINE
kgeom_primitive_name - *
LIBRARY CALL
char *
kgeom_primitive_name(int primitive)
INPUT
- primitive - primitive to return the name for
OUTPUT
none
RETURN VALUE
A pointer to the string corresponding to the given
primitive if it has been defined. NULL otherwise.
DESCRIPTION
This routine will take a given geometry primitive
type and return a corresponding string.
For example, kgeom_type_to_string(KGEOM_SPHERES)
would return the string "spheres".
The corresponding string is defined via the geometry
primitive definition call. If the given primitive
has not yet been defined, this routine will return NULL.
The returned string is a pointer to the actual internal
string from the definition and should not be altered of
freed.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$DATASERV/objects/library/koldgeom/src/geom_defin.c
SEE ALSO
koldgeom(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.