// PLY can't have more than one mesh per file, so write one file per
// sub-mesh
final int subMeshCount = mesh.subMeshes.size();
final int vertsPerFace = 3;
for (int i = 0; i < subMeshCount; i++) {
SubMesh subMesh = mesh.subMeshes.get(i);
// use prefix if there's more than one submesh
String name = mesh.name;
if (subMeshCount > 1) {
name = String.format("%s_%d", name, i);