What is the best way to get all the single values from a nested array, take this for example:
polygons=[ polygon[1,2,3,4], polygon[2,3,4,1], polygon[4,5,6,2] ]
Using method 'getValue' and an index I can get to a single polygon, and again with getValue and an index I can get to each of the polygon's vertexindeces, that works.
But If I want to get them all using a series I can't seem te break out of the first level since a using a series on the main polygons array yield the exact same array, an array of polygons.
Anyways I want to end up with [1,2,3,4,2,3,4,1,4,5,6,2] and I know I can use the ContPolyData for that but that isn't allways the case and in general I seem to get stuck with nested arrays..