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

*** empty log message ***

parent a452d9b4
No related branches found
No related tags found
No related merge requests found
......@@ -142,12 +142,18 @@ static void extrudeMesh(GFace *from, GRegion *to,
}
}
}
for(unsigned int i = 0; i < from->quadrangles.size(); i++){
for(int j = 0; j < ep->mesh.NbLayer; j++) {
for(int k = 0; k < ep->mesh.NbElmLayer[j]; k++) {
std::vector<MVertex*> verts;
if(getExtrudedVertices(from->quadrangles[i], ep, j, k, pos, verts) == 8)
createHexPri(verts, to);
if(from->quadrangles.size() && !ep->mesh.Recombine){
Msg::Error("Cannot extrude quadrangles without Recombine");
}
else{
for(unsigned int i = 0; i < from->quadrangles.size(); i++){
for(int j = 0; j < ep->mesh.NbLayer; j++) {
for(int k = 0; k < ep->mesh.NbElmLayer[j]; k++) {
std::vector<MVertex*> verts;
if(getExtrudedVertices(from->quadrangles[i], ep, j, k, pos, verts) == 8)
createHexPri(verts, to);
}
}
}
}
......
......@@ -50,3 +50,6 @@ clean:
depend:
true
# DO NOT DELETE THIS LINE
nglib_addon.o: ../../Common/GmshMessage.h
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