Numbering and flat panelling elements in Grasshopper

Hi,
I have a parametric facade and I am trying to name the panels individually and then unroll the flat on surface individually for digital fabrication. I have done the naming of panels. While doing the unrolling of facade I have having error in doing so. I have attached the image and .gh for reference.

1.The surface has 308 Branches after grafting. When I connect it to Brep wireframe the branches are showing as 312. Which I am not able to find out why. I have tried grafting, Flattening the wireframe also. each time I get different Branch and N values. Using Brep wireframe if I create boundary surface its showing “Planar surface routine returned no results” error. I want the surface boundary output to match the same as Initial surface branch value i.e, 308.

2.The surface branch value is 308. The naming of panels is also 308 which are same.
I wanted the merge the naming panel and boundary surface and then orient them in universal plane. But the points on the surface are also not laying flat on the universal plane axis.

Kindly suggest me how I can I rectify it. Or is there any other way to do this.
Thanks


Elevation Fascade R8.3dm (168.1 KB)
elevation R8.gh (230.4 KB)