37 void Foam::meshReader::calcPointCells()
const
39 static const label UNIT_POINT_CELLS = 12;
44 <<
"pointCells already calculated"
51 auto& ptCells = *pointCellsPtr_;
55 ptCells[i].setSize(UNIT_POINT_CELLS);
73 const faceList& faces = cFaces[celli];
83 label curPoint = labels[j];
84 labelList& curPointCells = ptCells[curPoint];
85 label curCount = cellCount[curPoint];
90 for (label
f = 0;
f < curCount;
f++)
92 if (curPointCells[
f] == celli)
102 if (curPointCells.size() <= curCount)
104 curPointCells.setSize(curPointCells.size()*2);
108 curPointCells[curCount] = celli;
111 cellCount[curPoint]++;
124 ptCells[i].setSize(cellCount[i]);
125 if (cellCount[i] > 0)
127 oldToNew[i] = pointi++;
142 adjustedPoints.setSize(
nPoints);
171 return *pointCellsPtr_;