|
From: Roger H. <rog...@mi...> - 2009-03-19 21:04:56
|
Firstly let me say I am using a one or two year old version of Quesa so its possible a suitable routine has been added since. I want to quickly scan through all the vertices of an object to see if they ALL have a diffuse colour attribute, which means that setting the objects own diffuse colour will have no effect, so the user option should be greyed out. I don't think there is any way of doing this on a geometry object so I have to split off each type of object. For a polygon there is a useful routine Q3Polygon_GetVertexAttributeSet, which takes the object, an index and an attribute set. Trouble is, I can't find a simple routine which tells me the maximum index. Of course I can get the TQ3PolygonData and read it from there, but not only is that slow, if I get that I can read the vertex array directly so don't need Q3Polygon_GetVertexAttributeSet. Am I missing something or is this just silly design? Roger Holmes |