Finished triangle plane mesh code.
Calculate normals in the polygon entity itself.