Man Linux: Main Page and Category List

icetBoundingVertices--setboundsofgeometry.

#include <GL/ice-t.h> voidicetBoundingVertices( GLintsize, GLenumtype, GLsizeistride, GLsizeicount, const GLvoid *pointer);

icetBoundingVerticesis used to tellIceTwhat the bounds of the geometry drawn by the callback registered withicetDrawFuncare. The bounds are assumed to be the convex hull of the vertices given. The user should take care to make sure that the drawn geometry actually does fit within the convex hull, or the data may be culled in unexpected ways.IceTruns most efficiently when the bounds given are tight (match the actual volume of the data well) and when the number of vertices given is minimal. Thesizeparameter specifies the number of coordinates given for each vertex. Coordinates are given in X-Y-Z-W order. Any Y or Z coordinate not given (becausesizeis less than 3) is assumed to be 0.0, and any W coordinate not given (becausesizeis less than 4) is assumed to be 1.0. Thetypeparameter specifies in what data type the coordinates are given. Validtypes areICET_SHORT,ICET_INT,ICET_FLOAT, andICET_DOUBLE, which correspond to types GLshort, GLint, GLfloat, and GLdouble, respectively. Thestrideparameter specifies the offset between consecutive vertices in bytes. Ifstrideis 0, the array is assumed to be tightly packed. Thecountparameter specifies the number of vertices to set. Thepointerparameter is an array of vertices with the first vertex starting at the first byte. If data replication is being used, each process in a data replication group should register the same bounding vertices that encompass the entire geometry. By default there is no data replication, so unless you callicetDataReplicationGroup, all process can have their own bounds.

ICET_INVALID_VALUERaised iftypeis not one ofICET_SHORT,ICET_INT,ICET_FLOAT, orICET_DOUBLE.

None.

None known.

Copyright (C)2003 Sandia Corporation Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive license for use of this work by or on behalf of the U.S. Government. Redistribution and use in source and binary forms, with or without modification, are permitted provided that this Notice and any statement of authorship are reproduced on all copies.

icetDrawFunc(3),icetBoundingBox(3),icetDataReplicationGroup(3)IceTReference April 12, 2006 icetBoundingVertices(3)