Overview Function List GLOD Web Site

NAME

glodObjectParameteri, glodObjectParameterf - Sets an object's parameter to a specified value.

C SPECIFICATION

void glodObjectParameteri(GLuint name, GLenum pname, GLint param)

void glodObjectParameterf(GLuint name, GLenum pname, GLfloat param)

PARAMETERS

name, pname, param
The parameter pname of the object named name is set to the value of param.

POSSIBLE PNAME/PARAM COMBINATIONS

GLOD_BUILD_OPERATOR
Selects the method used for incrementally reducing the geometry while building the multiresolution hierarchy. Possible values for param are:
GLOD_OPERATOR_HALF_EDGE_COLLAPSE
Merges two vertices currently connected by an edge. One of the two vertices is merged into the other, which remains (essentially) unchanged.

GLOD_OPERATOR_EDGE_COLLAPSE
Merges two vertices currently connected by an edge. Both vertices are replace by a new, unified vertex, which is chosen to minimize error according to some error metric.

GLOD_BUILD_QUEUE_MODE
Changes the way order in which vertices are chosen to be collapsed. Possible values for param are:
GLOD_QUEUE_GREEDY
After each simplification operation, GLOD will recalculate the priority values for each of the neighboring edge.

GLOD_QUEUE_LAZY
After each simplification operation, GLOD will mark the priority values of each neighboring edge to be dirty. Recomputation of costs will only be done on required edges.

GLOD_QUEUE_INDEPENDENT
This method performs non-overlapping sets of operations on the input geometry, resulting in hierarchies of logarithmic height.

GLOD_BUILD_BORDER_MODE
Changes the handling of vertices on a geometric border (i.e. a vertex without a full ring of triangles around it). Possible values for param are:
GLOD_BORDER_UNLOCK
The default behavior, does not treat geometric border vertices specially.

GLOD_BORDER_LOCK
Prevents any modification to or removal of border vertices.

GLOD_BUILD_SHARE_TOLERANCE
This floating point parameter is intended to compensate for small floating point errors present in your data set. It controls the amount of distance between two vertices before they are considered coincident. Increase this number if cracks appear in your object.

ERRORS

GLOD_INVALID_NAME is generated if an object of the specified name does not exist.
GLOD_UNKNOWN_PROPERTY is generated if the parameter name is not recognized.
GLOD_UNSUPPORTED_PROPERTY is generated if the data type you chose for this parameter is not supported.

Last modified: 06/10/04 06:32:25 PM