diff --git a/Geo/MVertex.h b/Geo/MVertex.h index 3f8ed426329b4f018299d2fa6dac6443dbd00428..3873f65405abd2d6a0be50c271645584b597c26d 100644 --- a/Geo/MVertex.h +++ b/Geo/MVertex.h @@ -84,7 +84,11 @@ class MVertex{ // get/set the number 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 inline int getIndex() const { return _index; }