[Gmsh] MVertex ID
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Sun May 31 09:53:01 CEST 2009
Chaman Singh Verma wrote:
> Hello,
>
> In MVertex.h, the document says:
>
> // the id number of the vertex (this number is unique and is
> // guaranteed never to change once a mesh has been generated)
>
> int _num;
>
> and in the same class MVertex there is function
>
> setNum(int num )
>
> which allows changing the _num value.
>
> In fact, in surface meshing, setNum has been used and therefore IDs are
> modified. There are many
> situations where this modification creates big problems. Can we stick to
> the first rule that _num will
> never be modified and any use of local numbering may be done by index (
> in the MVertex.h ) class.
>
MVertex::_num is *not* modified once the mesh has been created.
>
> csv
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine