GEOMETRY (geometry) functions


LIBRARY ROUTINE

lgoctmesh - *

LIBRARY CALL

int lgoctmesh(kobject inobj,
	      int have_mapfile,
	      kobject cmapobj,
	      kgeom_object *outobj,
	      char *name,
	      int do_normals,
	      int flip_normals)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) on success, FALSE (0) otherwise

DESCRIPTION

to create an octmesh geom object from 3D data. the geom may be optionally colorized with a colormap, whose presence is optional.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

do not drive heavy machinery while operating this software

RESTRICTIONS

Restrictions on data or input as applicable

MODIFICATION

* jan 16 - changes for looping through the input data set by plane, rather than trying to process the whole thing at once. add code to generate normals.

Mon Oct 28 09:45:06 PST 1996 - various enhancements to produce more compact octmesh files. specifically, when the input data consists of scalar data, we will convert it to unsigned byte format, thus achieving some space savings.

we will try really hard to write an octmesh object which conforms to the following attributes: 1. floating point 3space location data. 2(a). byte, scalar color information 2(b). rgba colormap (NOT a vis colormap) 3. floating point 3dim "normals" which represent gradient in the original floating point input scalar data.

only if the input data contains 4-component (or 3-component) color information at each vertex will this format of data be written.

Sun Jan 19 1997 : Steve K new geometry services has no support for colormap : octmesh will contain float rgba colors.

FILES

$GEOMETRY/objects/library/geometry/src/lgoctmesh.c

SEE ALSO

geometry(3)

COPYRIGHT

Copyright (C) 1996,1997 , The Regents of the University of California. All rights reserved.