30 void Foam::primitiveMesh::calcPointPoints()
const
34 Pout<<
"primitiveMesh::calcPointPoints() : "
35 <<
"calculating pointPoints"
52 <<
"pointPoints already calculated"
65 pp[pointi].setSize(pe[pointi].size());
69 if (
e[pe[pointi][ppi]].start() == pointi)
71 pp[pointi][ppi] =
e[pe[pointi][ppi]].end();
73 else if (
e[pe[pointi][ppi]].end() == pointi)
75 pp[pointi][ppi] =
e[pe[pointi][ppi]].start();
80 <<
"something wrong with edges"
108 if (hasPointPoints())
110 return pointPoints()[pointi];
114 const edgeList& edges = this->edges();
115 const labelList& pEdges = pointEdges()[pointi];
126 storage.
append(edges[pEdges[i]].otherVertex(pointi));
139 return pointPoints(pointi, labels_);
#define forAll(list, i)
Loop across all elements in list.
void setCapacity(const label)
Alter the size of the underlying storage.
label capacity() const
Size of the underlying storage.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
void clear()
Clear the addressed list, i.e. set the size to zero.
void size(const label)
Override size to be inconsistent with allocated storage.
const labelListList & pointEdges() const
const edgeList & edges() const
Return mesh edges. Uses calcEdges.
const labelListList & pointPoints() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
List< labelList > labelListList
A List of labelList.
prefixOSstream Pout(cout, "Pout")