Commit df29f58d authored by Christophe Geuzaine's avatar Christophe Geuzaine

don't try to create pyramids if transfinite, extruded or discrete

parent 70428bdf
Pipeline #2886 passed with stage
in 57 minutes and 29 seconds
......@@ -61,6 +61,11 @@ int splitQuadRecovery::buildPyramids(GModel *gm)
int npyram = 0;
for(GModel::riter it = gm->firstRegion(); it != gm->lastRegion(); it++){
GRegion *gr = *it;
if(gr->meshAttributes.method == MESH_TRANSFINITE) continue;
if(gr->geomType() == GEntity::DiscreteVolume) continue;
ExtrudeParams *ep = gr->meshAttributes.extrude;
if(ep && ep->mesh.ExtrudeMesh && ep->geo.Mode == EXTRUDED_ENTITY) continue;
std::vector<GFace*> faces = gr->faces();
for(unsigned int i = 0; i < faces.size(); i++){
GFace *gf = faces[i];
......
......@@ -302,7 +302,7 @@ namespace tetgenBR {
}
else if(ori == 0.0) {
if(!b->quiet) {
printf("Warning: Tet #%d is degenerate.\n", i + in->firstnumber);
Msg::Warning("Tet #%d is degenerate", i + in->firstnumber);
}
}
// Create a new tetrahedron.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment