int
kgeom_write_object(kgeom_object *object, char *filename)
none
kgeom_read_object()
function.
This function will write everything contained in the geometry object to the file. All the object information will be written followed by the information and data contained in each primitive in the object's primitive list.
After the object has been written, you may free it
using the kgeom_blast_object()
function.
If the geometry set being written is too large to fit
into memory, a series of incremental calls can be
made to write out an object a primitive at a time.
See the kgeom_write_primitive()
man page
for more details on this capability.
// presumably some primitives would be added here
kgeom_write_object(geom, "data.kgm");
kgeom_object *geom;
$DATASERV/objects/library/kgeom/src/object.c