Fixed the vertices optimization and added a plane mesh