|
From: Roger H. <rog...@mi...> - 2009-03-20 12:45:16
|
On 19 Mar 2009, at 22:10, James Walker wrote: > 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? No, it was just a gut feeling, and more to do with our wrapper classes than with Quesa itself. I will add routines in our wrappers to get the various count via GetData routine for each of the different geometries and probably all will then be OK. Thanks. |