mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-05 21:54:16 +05:00
PAL13330( When mesh generation does not success, trace where )
- SMESH::ModifiedMesh(aMeshSO, false); + SMESH::ModifiedMesh(aMeshSO, false, aMesh->NbNodes()==0);
This commit is contained in:
parent
e42ad91f08
commit
40681d2920
@ -868,7 +868,7 @@ using namespace std;
|
|||||||
|
|
||||||
_PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh);
|
_PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh);
|
||||||
if (aMeshSO)
|
if (aMeshSO)
|
||||||
SMESH::ModifiedMesh(aMeshSO, false);
|
SMESH::ModifiedMesh(aMeshSO, false, aMesh->NbNodes()==0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
IObject = new SALOME_InteractiveObject
|
IObject = new SALOME_InteractiveObject
|
||||||
|
@ -119,7 +119,7 @@ void SMESHGUI_GenericHypothesisCreator::edit( SMESH::SMESH_Hypothesis_ptr h, QWi
|
|||||||
if( !aSubMesh->_is_nil() )
|
if( !aSubMesh->_is_nil() )
|
||||||
aMesh = aSubMesh->GetFather();
|
aMesh = aSubMesh->GetFather();
|
||||||
_PTR(SObject) meshSO = SMESH::FindSObject( aMesh );
|
_PTR(SObject) meshSO = SMESH::FindSObject( aMesh );
|
||||||
SMESH::ModifiedMesh( meshSO, false);
|
SMESH::ModifiedMesh( meshSO, false, aMesh->NbNodes()==0);
|
||||||
}
|
}
|
||||||
SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 );
|
SMESHGUI::GetSMESHGUI()->updateObjBrowser( true, 0 );
|
||||||
}
|
}
|
||||||
|
@ -410,7 +410,7 @@ namespace SMESH{
|
|||||||
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
||||||
_PTR(SObject) aSH = SMESH::FindSObject(aHyp);
|
_PTR(SObject) aSH = SMESH::FindSObject(aHyp);
|
||||||
if (SM && aSH) {
|
if (SM && aSH) {
|
||||||
SMESH::ModifiedMesh(SM, false);
|
SMESH::ModifiedMesh(SM, false, aMesh->NbNodes()==0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (res > SMESH::HYP_OK) {
|
if (res > SMESH::HYP_OK) {
|
||||||
@ -445,7 +445,7 @@ namespace SMESH{
|
|||||||
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
||||||
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
|
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
|
||||||
if (meshSO)
|
if (meshSO)
|
||||||
SMESH::ModifiedMesh(meshSO, false);
|
SMESH::ModifiedMesh(meshSO, false, aMesh->NbNodes()==0);
|
||||||
}
|
}
|
||||||
if (res > SMESH::HYP_OK) {
|
if (res > SMESH::HYP_OK) {
|
||||||
wc.suspend();
|
wc.suspend();
|
||||||
@ -531,7 +531,7 @@ namespace SMESH{
|
|||||||
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
if (res < SMESH::HYP_UNKNOWN_FATAL) {
|
||||||
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
|
_PTR(SObject) meshSO = SMESH::FindSObject(aMesh);
|
||||||
if (meshSO)
|
if (meshSO)
|
||||||
SMESH::ModifiedMesh(meshSO, false);
|
SMESH::ModifiedMesh(meshSO, false, aMesh->NbNodes()==0);
|
||||||
}
|
}
|
||||||
if (res > SMESH::HYP_OK) {
|
if (res > SMESH::HYP_OK) {
|
||||||
wc.suspend();
|
wc.suspend();
|
||||||
|
@ -633,20 +633,23 @@ SMESH_Swig::SetName(const char* theEntry,
|
|||||||
//================================================================================
|
//================================================================================
|
||||||
|
|
||||||
void SMESH_Swig::SetMeshIcon(const char* theMeshEntry,
|
void SMESH_Swig::SetMeshIcon(const char* theMeshEntry,
|
||||||
const bool theIsComputed)
|
const bool theIsComputed,
|
||||||
|
const bool isEmpty)
|
||||||
{
|
{
|
||||||
class TEvent: public SALOME_Event
|
class TEvent: public SALOME_Event
|
||||||
{
|
{
|
||||||
SALOMEDS::Study_var myStudy;
|
SALOMEDS::Study_var myStudy;
|
||||||
std::string myMeshEntry;
|
std::string myMeshEntry;
|
||||||
bool myIsComputed;
|
bool myIsComputed, myIsEmpty;
|
||||||
public:
|
public:
|
||||||
TEvent(const SALOMEDS::Study_var& theStudy,
|
TEvent(const SALOMEDS::Study_var& theStudy,
|
||||||
const std::string& theMeshEntry,
|
const std::string& theMeshEntry,
|
||||||
const bool theIsComputed):
|
const bool theIsComputed,
|
||||||
|
const bool isEmpty):
|
||||||
myStudy(theStudy),
|
myStudy(theStudy),
|
||||||
myMeshEntry(theMeshEntry),
|
myMeshEntry(theMeshEntry),
|
||||||
myIsComputed(theIsComputed)
|
myIsComputed(theIsComputed),
|
||||||
|
myIsEmpty(isEmpty)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
virtual
|
virtual
|
||||||
@ -656,11 +659,12 @@ void SMESH_Swig::SetMeshIcon(const char* theMeshEntry,
|
|||||||
SALOMEDS::SObject_var aMeshSO = myStudy->FindObjectID(myMeshEntry.c_str());
|
SALOMEDS::SObject_var aMeshSO = myStudy->FindObjectID(myMeshEntry.c_str());
|
||||||
if(!aMeshSO->_is_nil())
|
if(!aMeshSO->_is_nil())
|
||||||
if(_PTR(SObject) aMesh = ClientFactory::SObject(aMeshSO))
|
if(_PTR(SObject) aMesh = ClientFactory::SObject(aMeshSO))
|
||||||
SMESH::ModifiedMesh(aMesh,myIsComputed);
|
SMESH::ModifiedMesh(aMesh,myIsComputed,myIsEmpty);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ProcessVoidEvent(new TEvent(myStudy,
|
ProcessVoidEvent(new TEvent(myStudy,
|
||||||
theMeshEntry,
|
theMeshEntry,
|
||||||
theIsComputed));
|
theIsComputed,
|
||||||
|
isEmpty));
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ public:
|
|||||||
* \param Mesh_Entry - entry of a mesh
|
* \param Mesh_Entry - entry of a mesh
|
||||||
* \param isComputed - is mesh computed or not
|
* \param isComputed - is mesh computed or not
|
||||||
*/
|
*/
|
||||||
void SetMeshIcon(const char* Mesh_Entry, const bool isComputed);
|
void SetMeshIcon(const char* Mesh_Entry, const bool isComputed, const bool isEmpty);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SALOMEDS::Study_var myStudy;
|
SALOMEDS::Study_var myStudy;
|
||||||
|
Loading…
Reference in New Issue
Block a user