32void Foam::primitiveMesh::calcPointPoints()
const
36 Pout<<
"primitiveMesh::calcPointPoints() : "
37 <<
"calculating pointPoints"
54 <<
"pointPoints already calculated"
67 pp[pointi].setSize(pe[pointi].size());
71 if (
e[pe[pointi][ppi]].start() == pointi)
73 pp[pointi][ppi] =
e[pe[pointi][ppi]].
end();
75 else if (
e[pe[pointi][ppi]].
end() == pointi)
77 pp[pointi][ppi] =
e[pe[pointi][ppi]].start();
82 <<
"something wrong with edges"
110 if (hasPointPoints())
112 return pointPoints()[pointi];
116 const edgeList& edges = this->edges();
117 const labelList& pEdges = pointEdges()[pointi];
128 storage.
append(edges[pEdges[i]].otherVertex(pointi));
141 return pointPoints(pointi, labels_);
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
void append(const T &val)
Copy append an element to the end of this list.
label capacity() const noexcept
Size of the underlying storage.
void setCapacity(const label len)
Alter the size of the underlying storage.
iterator end() noexcept
Return an iterator to end traversing the UList.
void size(const label n)
Older name for setAddressableSize.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
List< labelList > labelListList
A List of labelList.
errorManip< error > abort(error &err)
List< edge > edgeList
A List of edges.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
#define forAll(list, i)
Loop across all elements in list.