i have a double loop that looks like so:
for i in xrange(len(myVVV)):
for j in xrange(len(myVVV[i])):
if myVVV[i][j]!= -1:
s=i,j
print(myVVV[i][j])
print(s)
gives this:
1
(0, 1)
2
(0, 5)
3
(1, 0)
4
(1, 1)
5
(1, 2)
6
(1, 4)
7
(1, 5)
8
(1, 6)
9
(2, 0)
10
(2, 1)
11
(2, 3)
12
(2, 4)
13
(3, 2)
14
(3, 3)
15
(3, 6)
16
(3, 7)
17
(4, 6)
18
(4, 7)
I'm trying to creating "triangles" by checking the dots the s represents the location of the number point on a grid, basically i would connect points 1,3,4 to make one triangle based on there location. So any ideas on how to go about this?
things i can read? Im creating a facet file which is why i need to make triangles with vertexes and such