|
From: James W. <ja...@fr...> - 2009-03-19 22:37:33
|
Roger Holmes wrote: > 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? It does seem like a silly design (and the same could be said about PolyLine and Polyhedron). But it's not clear to me that Q3Polygon_GetData should be slower than calling Q3Polygon_GetVertexAttributeSet for every vertex. Have you profiled it? -- James W. Walker, Innoventive Software LLC <http://www.frameforge3d.com/> |