Reputation: 1702
I have a multidimensional array as shown below
Contour[0] = [[(x1,y1),(x2,y2),(x3,y3)]]
Contour[1] = [[(x4,y4),(x5,y5),(x6,y6),(x7,y7),(x8,y8)]]
How to extract (x1,y1)
and (x3,y3)
from contour[0]
and (x4,y4)
and (x8,y8)
from contour[1]
?
Upvotes: 0
Views: 50
Reputation: 1161
Contour[0][0][0] ---> ('x1', 'y1')
Contour[1][0][0] ---> ('x4', 'y4')
Contour[1][0][4] ---> ('x8', 'y8')
Upvotes: 2