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

Merge branch 'vertex_edge_adj' into 'master'

fix vertex->edge adjacency when reading msh (v4) files

See merge request gmsh/gmsh!467
parents 73b3fea9 fce7f49f
Branches
Tags
No related merge requests found
......@@ -58,8 +58,8 @@ public:
virtual void deleteMesh();
// get the start/end vertices of the edge
void setBeginVertex(GVertex *gv) { _v0 = gv; }
void setEndVertex(GVertex *gv) { _v1 = gv; }
void setBeginVertex(GVertex *gv) { _v0 = gv; gv->addEdge(this); }
void setEndVertex(GVertex *gv) { _v1 = gv; gv->addEdge(this); }
virtual GVertex *getBeginVertex() const { return _v0; }
virtual GVertex *getEndVertex() const { return _v1; }
void setVertex(GVertex *const f, const int orientation)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment