Tools/MeshExtractor: Corrected some generation code.