openfoam/applications/utilities/preProcessing/viewFactorsGen
Mark Olesen 64c3e484bb STYLE: add nBoundaryFaces() method to primitiveMesh
- nBoundaryFaces() is often used and is identical to
  (nFaces() - nInternalFaces()).

- forward the mesh nInternalFaces() and nBoundaryFaces() to
  polyBoundaryMesh as nFaces() and start() respectively,
  for use when operating on a polyBoundaryMesh.

STYLE:

- use identity() function with starting offset when creating boundary maps.

     labelList map
     (
         identity(mesh.nBoundaryFaces(), mesh.nInternalFaces())
     );

  vs.

     labelList map(mesh.nBoundaryFaces());
     forAll(map, i)
     {
         map[i] = mesh.nInternalFaces() + i;
     }
2018-09-27 10:17:30 +02:00
..
Make ENH: relocate triSurface classes into surfMesh library (issue #294) 2017-05-18 10:42:05 +02:00
searchingEngine.H boundaryField() -> boundaryFieldRef() 2016-04-24 22:07:37 +01:00
shootRays.H GIT: Initial state after latest Foundation merge 2016-09-20 14:49:08 +01:00
viewFactorsGen.C STYLE: add nBoundaryFaces() method to primitiveMesh 2018-09-27 10:17:30 +02:00