31 void Foam::primitiveMesh::calcPointCells()
const
37 Pout<<
"primitiveMesh::calcPointCells() : "
38 <<
"calculating pointCells"
55 <<
"pointCells already calculated"
72 label ptI = curPoints[pointI];
84 forAll (pointCellAddr, pointI)
86 pointCellAddr[pointI].setSize(npc[pointI]);
97 label ptI = curPoints[pointI];
99 pointCellAddr[ptI][npc[ptI]++] = cellI;
127 return pointCells()[pointI];
139 const label faceI = pFaces[i];
142 storage.
append(own[faceI]);
145 if (faceI < nInternalFaces())
147 storage.
append(nei[faceI]);
152 if (storage.
size() > 1)
157 for (label i = 1; i < storage.
size(); i++)
159 if (storage[i-1] != storage[i])
161 storage[n++] = storage[i];
176 return pointCells(pointI, labels_);