mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Improve checking of validity of mesh elements connectivity
This commit is contained in:
parent
fa076b4364
commit
efdf984e40
@ -309,21 +309,35 @@ Driver_Mesh::Status DriverMED_R_SMESHDS_Mesh::Perform()
|
||||
break;
|
||||
}
|
||||
vector<TInt> aNodeIds(aNbNodes);
|
||||
bool anIsValidConnect = false;
|
||||
|
||||
try{
|
||||
#ifdef _EDF_NODE_IDS_
|
||||
if(anIsNodeNum) {
|
||||
for(int i = 0; i < aNbNodes; i++){
|
||||
aNodeIds[i] = aNodeInfo->GetElemNum(aCellInfo->GetConn(iElem,i)-1);
|
||||
if(anIsNodeNum) {
|
||||
for(int i = 0; i < aNbNodes; i++){
|
||||
aNodeIds[i] = aNodeInfo->GetElemNum(aCellInfo->GetConn(iElem,i)-1);
|
||||
}
|
||||
}else{
|
||||
for(int i = 0; i < aNbNodes; i++){
|
||||
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
#else
|
||||
for(int i = 0; i < aNbNodes; i++){
|
||||
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
||||
}
|
||||
}
|
||||
#else
|
||||
for(int i = 0; i < aNbNodes; i++){
|
||||
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
||||
}
|
||||
#endif
|
||||
anIsValidConnect = true;
|
||||
}catch(const std::exception& exc){
|
||||
//INFOS("Follow exception was cought:\n\t"<<exc.what());
|
||||
aResult = DRS_FAIL;
|
||||
}catch(...){
|
||||
//INFOS("Unknown exception was cought !!!");
|
||||
aResult = DRS_FAIL;
|
||||
}
|
||||
|
||||
if(!anIsValidConnect)
|
||||
continue;
|
||||
|
||||
bool isRenum = false;
|
||||
SMDS_MeshElement* anElement = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user