Procedural mesh is black when apply rotation

I created procedural mesh from Static Vertices, Triangles, UV and Normals as shown in the figure.

Initial pyramid :

Rotation on x=180: Pyramid turned to the black.

Procedural Mesh Construction script:

Vertices:

Triangles:

Normals:

UV:

I am facing same problem.