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

new MEdgeVertex constructor

parent 2afbbda5
No related branches found
No related tags found
No related merge requests found
......@@ -305,7 +305,7 @@ int GModel::readMSH(const std::string &name)
if(fread(&u, sizeof(double), 1, fp) != 1){ fclose(fp); return 0; }
if(swap) SwapBytes((char*)&u, sizeof(double), 1);
}
vertex = new MEdgeVertex(xyz[0], xyz[1], xyz[2], ge, u, -1.0, num);
vertex = new MEdgeVertex(xyz[0], xyz[1], xyz[2], ge, u, num);
}
break;
case 2:
......
......@@ -310,7 +310,7 @@ int GModel::_readMSH2(const std::string &name)
if(fread(uv, sizeof(double), 1, fp) != 1){ fclose(fp); return 0; }
if(swap) SwapBytes((char*)uv, sizeof(double), 1);
}
newVertex = new MEdgeVertex(xyz[0], xyz[1], xyz[2], ge, uv[0], -1.0, num);
newVertex = new MEdgeVertex(xyz[0], xyz[1], xyz[2], ge, uv[0], num);
}
else if (iClasDim == 2){
GFace *gf = getFaceByTag(iClasTag);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment