BUG: DelaunayMesh: Do not allow vertexCount to be externally updated

This commit is contained in:
laurence
2013-07-19 16:42:16 +01:00
parent bc6ed9b70a
commit 1c55166d36
3 changed files with 1 additions and 8 deletions

View File

@ -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
{ {

View File

@ -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();

View File

@ -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()