/// <summary> /// If realvertices in lots were not found will flagged. And when all were done will finally write the XML /// </summary> private void FinalWrite() { if (!isToSetRealVerticesOnLots && realVertiesDoneCount == 0) { isToSetRealVerticesOnLots = true; } else if (isToSetRealVerticesOnLots && realVertiesDoneCount == Lots.Count) { Malla.Lots = Lots; subMesh.AllSubMeshedLots = Malla.Lots; subMesh.amountOfSubVertices = AllVertexs.Count; subMesh.mostCommonYValue = UList.FindMostCommonValue(H.Y, Vertices.ToList()); WriteXML(); //print(subMesh.amountOfSubVertices + " subMesh.amountOfSubVertices "); isToSetRealVerticesOnLots = false; } }