mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: DelaunayMesh: Do not allow vertexCount to be externally updated
This commit is contained in:
@ -122,7 +122,7 @@ Foam::DelaunayMesh<Triangulation>::DelaunayMesh
|
|||||||
if (indices.headerOk())
|
if (indices.headerOk())
|
||||||
{
|
{
|
||||||
vh->index() = indices[ptI];
|
vh->index() = indices[ptI];
|
||||||
vertexCount()++;
|
vertexCount_++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -201,7 +201,6 @@ public:
|
|||||||
inline void resetCellCount();
|
inline void resetCellCount();
|
||||||
|
|
||||||
inline label vertexCount() const;
|
inline label vertexCount() const;
|
||||||
inline label& vertexCount();
|
|
||||||
|
|
||||||
inline void resetVertexCount();
|
inline void resetVertexCount();
|
||||||
|
|
||||||
|
|||||||
@ -124,12 +124,6 @@ Foam::label Foam::DelaunayMesh<Triangulation>::vertexCount() const
|
|||||||
return vertexCount_;
|
return vertexCount_;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class Triangulation>
|
|
||||||
Foam::label& Foam::DelaunayMesh<Triangulation>::vertexCount()
|
|
||||||
{
|
|
||||||
return vertexCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
template<class Triangulation>
|
template<class Triangulation>
|
||||||
void Foam::DelaunayMesh<Triangulation>::resetVertexCount()
|
void Foam::DelaunayMesh<Triangulation>::resetVertexCount()
|
||||||
|
|||||||
Reference in New Issue
Block a user