Skip to content
Snippets Groups Projects
Commit a58167c4 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Make 'numVertices' work for uninitialised patches by returning zero

parent 7288887c
No related branches found
No related tags found
1 merge request!25Make 'numVertices' work for uninitialised patches by returning zero
Pipeline #
...@@ -616,6 +616,8 @@ public: ...@@ -616,6 +616,8 @@ public:
/** \brief Returns the number of vertices in the surface */ /** \brief Returns the number of vertices in the surface */
int numVertices() const { int numVertices() const {
if (gridView_ == nullptr)
return 0;
if (!this->verticesAreUpToDate_) if (!this->verticesAreUpToDate_)
this->makeVertices(); this->makeVertices();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment