How do I iterate through a Graphic3d_ArrayOfPolygons?

How do I iterate through a Graphic3d_ArrayOfPolygons, I'm working on a way on a sort of triangles to quads feature and there seems to be no way to access the indices of each facet, nor is there any default iterators that I can see?

gkv311 n's picture

I don't think that this structure is of any use - it would be better defining a suitable structure on your own following specific needs.

This structure defines polygon as an array of vertex indices (called Edges here). And to define more than a single polygon you need addibd Bounds - an array of polygon sizes. So that to iterate over polygons you need iterating through bounds to determine number of points in the next polygon, then read specific number of indices (edges), then retrieve 3D points behind these indices (vertices).