The first row - number of pieces

Then for every pieces :
- number of triangles
- orientations of triangles (1,2,3,7)
- positions of triangles (0,1)
- x-coordinates of triangles
- y-coordinates of triangles

for example

2
8
17777223
10000010
   1   2   3   4   5   6   2   4
   0   0   0   0   0   0   1   1
8
23177772
10100001
   1   3  -1   0   1   2   3   0
  -1  -1   0   0   0   0   0   1