Procedural mesh not saving all of its sections to static mesh

Is there a tutorial for converting procedural mesh into static mesh in c++?