mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use triSurface::FaceType where triangle or region information
not required
This commit is contained in:
@ -903,18 +903,13 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
|
||||
point& bbMin = bbs[distribution[triI]][0].min();
|
||||
point& bbMax = bbs[distribution[triI]][0].max();
|
||||
|
||||
const labelledTri& f = s[triI];
|
||||
const point& p0 = s.points()[f[0]];
|
||||
const point& p1 = s.points()[f[1]];
|
||||
const point& p2 = s.points()[f[2]];
|
||||
|
||||
bbMin = min(bbMin, p0);
|
||||
bbMin = min(bbMin, p1);
|
||||
bbMin = min(bbMin, p2);
|
||||
|
||||
bbMax = max(bbMax, p0);
|
||||
bbMax = max(bbMax, p1);
|
||||
bbMax = max(bbMax, p2);
|
||||
const triSurface::FaceType& f = s[triI];
|
||||
forAll(f, fp)
|
||||
{
|
||||
const point& pt = s.points()[f[fp]];
|
||||
bbMin = ::Foam::min(bbMin, pt);
|
||||
bbMax = ::Foam::max(bbMax, pt);
|
||||
}
|
||||
}
|
||||
|
||||
// Now combine for all processors and convert to correct format.
|
||||
@ -1003,12 +998,12 @@ void Foam::distributedTriSurfaceMesh::subsetMeshMap
|
||||
// Store new faces compact
|
||||
newToOldFaces[faceI++] = oldFacei;
|
||||
|
||||
// Renumber labels for triangle
|
||||
const labelledTri& tri = s[oldFacei];
|
||||
// Renumber labels for face
|
||||
const triSurface::FaceType& f = s[oldFacei];
|
||||
|
||||
forAll(tri, fp)
|
||||
forAll(f, fp)
|
||||
{
|
||||
label oldPointI = tri[fp];
|
||||
label oldPointI = f[fp];
|
||||
|
||||
if (oldToNewPoints[oldPointI] == -1)
|
||||
{
|
||||
@ -1122,12 +1117,12 @@ Foam::triSurface Foam::distributedTriSurfaceMesh::subsetMesh
|
||||
{
|
||||
if (include[oldFacei])
|
||||
{
|
||||
// Renumber labels for triangle
|
||||
const labelledTri& tri = s[oldFacei];
|
||||
// Renumber labels for face
|
||||
const triSurface::FaceType& f = s[oldFacei];
|
||||
|
||||
forAll(tri, fp)
|
||||
forAll(f, fp)
|
||||
{
|
||||
label oldPointI = tri[fp];
|
||||
label oldPointI = f[fp];
|
||||
|
||||
if (oldToNewPoints[oldPointI] == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user