Skip to content
Snippets Groups Projects
Commit c4cc0446 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

setNum() should change _globalNum
parent 6e64b466
Branches
Tags
No related merge requests found
...@@ -84,7 +84,11 @@ class MVertex{ ...@@ -84,7 +84,11 @@ class MVertex{
// get/set the number // get/set the number
inline int getNum() const { return _num; } inline int getNum() const { return _num; }
inline void setNum(int num) { _num = num; } inline void setNum(int num)
{
_num = num;
_globalNum = std::max(_globalNum, _num);
}
// get/set the index // get/set the index
inline int getIndex() const { return _index; } inline int getIndex() const { return _index; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment