ENH: ensure face, triFace and labelledTri all work consistently (issue #294)
- triFace() now initialized with '-1', which makes it behave equivalently to face(label). - supply default region=0 for some labelledTri constructors. This allows labelledTri to work more like a triFace and makes it easier to use in templated methods and eases conversion from triFace to a labelledTri. - labelledTri(const labelUList&) can now be used when converting from a face. It can have 3 values (use default region) or 4 values (with region). - face, triFace, labelledTri now all support construction with initializer lists. This can be useful for certain types of code. Eg, triFace f1{a, b, c}; face f2{a, b, c}; labelledTri f3{a, b, c}; Work without ambiguity. Also useful for templated methods: FaceType f{remap[a], remap[b], remap[c]};
Showing
- applications/test/faces/Make/files 3 additions, 0 deletionsapplications/test/faces/Make/files
- applications/test/faces/Make/options 0 additions, 0 deletionsapplications/test/faces/Make/options
- applications/test/faces/Test-faces.C 84 additions, 0 deletionsapplications/test/faces/Test-faces.C
- src/OpenFOAM/meshes/meshShapes/face/face.H 2 additions, 2 deletionssrc/OpenFOAM/meshes/meshShapes/face/face.H
- src/OpenFOAM/meshes/meshShapes/face/faceI.H 2 additions, 2 deletionssrc/OpenFOAM/meshes/meshShapes/face/faceI.H
- src/OpenFOAM/meshes/meshShapes/face/faceListFwd.H 0 additions, 2 deletionssrc/OpenFOAM/meshes/meshShapes/face/faceListFwd.H
- src/OpenFOAM/meshes/meshShapes/labelledTri/labelledTri.H 21 additions, 17 deletionssrc/OpenFOAM/meshes/meshShapes/labelledTri/labelledTri.H
- src/OpenFOAM/meshes/meshShapes/labelledTri/labelledTriI.H 43 additions, 1 deletionsrc/OpenFOAM/meshes/meshShapes/labelledTri/labelledTriI.H
- src/OpenFOAM/meshes/meshShapes/triFace/triFace.H 5 additions, 2 deletionssrc/OpenFOAM/meshes/meshShapes/triFace/triFace.H
- src/OpenFOAM/meshes/meshShapes/triFace/triFaceI.H 8 additions, 0 deletionssrc/OpenFOAM/meshes/meshShapes/triFace/triFaceI.H
Please register or sign in to comment