FEM: FemMesh VP throw exception instead of assert(0)

This commit is contained in:
Bernd Hahnebach 2015-11-19 12:29:42 +01:00 committed by wmayer
parent 2f5706262d
commit 758f3ec77e

View File

@ -974,7 +974,9 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop,
case 3:triangleCount++; break;
case 4:triangleCount += 2; break;
case 6:triangleCount += 4; break;
default: assert(0);
//case 8:triangleCount += 6; break; //quad8 face -> 6 triangle but no further implementation is done
default: throw std::runtime_error("only display mode nodes is supported for this element");
//default:assert(0);
}
}
// edge map collect and sort edges of the faces to be shown.
@ -1436,7 +1438,9 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop,
}
break;
default:assert(0); // not implemented node
//default:assert(0); // not implemented node
default: throw std::runtime_error("only display mode nodes is supported for this element");
}
}
}