1 triSurface patch(prefix + ".stl");
4 List<Tuple2<word, label> > patchNames(patch.patches().size());
6 forAll (patch.patches(), patchI)
9 Tuple2<word, label>(patch.patches()[patchI].name(), patchI);
12 Info << "Patches: " << patchNames << endl;
15 faceList faces(patch.size());
16 labelList faceLabels(patch.size());
17 labelList faceRegion(patch.size());
21 faces[faceI] = face(patch[faceI]);
22 faceLabels[faceI] = faceI;
23 faceRegion[faceI] = patch[faceI].region();
30 polyMesh::defaultRegion,
34 xferCopy(patch.points()),
36 xferCopy(labelList(0)),
37 xferCopy(labelList(0)),
43 List<pointZone*> pz(0);
44 List<faceZone*> fz(1);
45 List<cellZone*> cz(0);
51 boolList(patch.size(), false),
56 mesh.addPatches(List<polyPatch*>(0), true);
57 mesh.addZones(pz, fz, cz);