mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-12 15:47:27 +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;
|
break;
|
||||||
}
|
}
|
||||||
vector<TInt> aNodeIds(aNbNodes);
|
vector<TInt> aNodeIds(aNbNodes);
|
||||||
|
bool anIsValidConnect = false;
|
||||||
|
|
||||||
|
try{
|
||||||
#ifdef _EDF_NODE_IDS_
|
#ifdef _EDF_NODE_IDS_
|
||||||
if(anIsNodeNum) {
|
if(anIsNodeNum) {
|
||||||
for(int i = 0; i < aNbNodes; i++){
|
for(int i = 0; i < aNbNodes; i++){
|
||||||
aNodeIds[i] = aNodeInfo->GetElemNum(aCellInfo->GetConn(iElem,i)-1);
|
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++){
|
for(int i = 0; i < aNbNodes; i++){
|
||||||
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#else
|
|
||||||
for(int i = 0; i < aNbNodes; i++){
|
|
||||||
aNodeIds[i] = aCellInfo->GetConn(iElem,i);
|
|
||||||
}
|
|
||||||
#endif
|
#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;
|
bool isRenum = false;
|
||||||
SMDS_MeshElement* anElement = NULL;
|
SMDS_MeshElement* anElement = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user