How to calculate normals in DX11

Ahoj guys! I created the geometry here, and in order to do play with lights I (suppose) should calculate the normals.

I foud this contribution gsfx-per-vertex-normals and it works BUT NOT FOR all the shapes (as you can see here)

do you have any advice?

CalculateNormals.v4p (180.4 kB)

if you want the normal of the faces you have to find the center of two edges and cross product them.