mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:57:26 +05:00
To destinguish in what mode (embedded or not) the SMESHDS_Mesh was created
This commit is contained in:
parent
f172750ec3
commit
408e1a5c83
@ -375,9 +375,12 @@ SMESH_Client::SMESH_Client(CORBA::ORB_ptr theORB,
|
|||||||
MESSAGE("Info: The same process, update mesh by pointer ");
|
MESSAGE("Info: The same process, update mesh by pointer ");
|
||||||
// just set client mesh pointer to server mesh pointer
|
// just set client mesh pointer to server mesh pointer
|
||||||
SMESH_Mesh* aMesh = reinterpret_cast<SMESH_Mesh*>(theMesh->GetMeshPtr());
|
SMESH_Mesh* aMesh = reinterpret_cast<SMESH_Mesh*>(theMesh->GetMeshPtr());
|
||||||
mySMESHDSMesh = aMesh->GetMeshDS();
|
if(aMesh->GetMeshDS()->IsEmbeddedMode()){
|
||||||
mySMDSMesh = mySMESHDSMesh;
|
mySMESHDSMesh = aMesh->GetMeshDS();
|
||||||
}else
|
mySMDSMesh = mySMESHDSMesh;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!mySMDSMesh)
|
||||||
mySMDSMesh = new SMDS_Mesh();
|
mySMDSMesh = new SMDS_Mesh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,11 +46,18 @@ using namespace std;
|
|||||||
//purpose :
|
//purpose :
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
SMESHDS_Mesh::SMESHDS_Mesh(int theMeshID, bool theIsEmbeddedMode):
|
SMESHDS_Mesh::SMESHDS_Mesh(int theMeshID, bool theIsEmbeddedMode):
|
||||||
|
myIsEmbeddedMode(theIsEmbeddedMode),
|
||||||
myMeshID(theMeshID)
|
myMeshID(theMeshID)
|
||||||
{
|
{
|
||||||
myScript = new SMESHDS_Script(theIsEmbeddedMode);
|
myScript = new SMESHDS_Script(theIsEmbeddedMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
bool SMESHDS_Mesh::IsEmbeddedMode()
|
||||||
|
{
|
||||||
|
return myIsEmbeddedMode;
|
||||||
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : ShapeToMesh
|
//function : ShapeToMesh
|
||||||
//purpose :
|
//purpose :
|
||||||
|
@ -79,6 +79,8 @@ class SMESHDS_GroupBase;
|
|||||||
class SMESHDS_WNT_EXPORT SMESHDS_Mesh:public SMDS_Mesh{
|
class SMESHDS_WNT_EXPORT SMESHDS_Mesh:public SMDS_Mesh{
|
||||||
public:
|
public:
|
||||||
SMESHDS_Mesh(int theMeshID, bool theIsEmbeddedMode);
|
SMESHDS_Mesh(int theMeshID, bool theIsEmbeddedMode);
|
||||||
|
bool IsEmbeddedMode();
|
||||||
|
|
||||||
void ShapeToMesh(const TopoDS_Shape & S);
|
void ShapeToMesh(const TopoDS_Shape & S);
|
||||||
bool AddHypothesis(const TopoDS_Shape & SS, const SMESHDS_Hypothesis * H);
|
bool AddHypothesis(const TopoDS_Shape & SS, const SMESHDS_Hypothesis * H);
|
||||||
bool RemoveHypothesis(const TopoDS_Shape & S, const SMESHDS_Hypothesis * H);
|
bool RemoveHypothesis(const TopoDS_Shape & S, const SMESHDS_Hypothesis * H);
|
||||||
@ -499,6 +501,7 @@ private:
|
|||||||
TGroups myGroups;
|
TGroups myGroups;
|
||||||
|
|
||||||
SMESHDS_Script* myScript;
|
SMESHDS_Script* myScript;
|
||||||
|
bool myIsEmbeddedMode;
|
||||||
|
|
||||||
// optimize addition of nodes/elements to submeshes by, SetNodeInVolume() etc:
|
// optimize addition of nodes/elements to submeshes by, SetNodeInVolume() etc:
|
||||||
// avoid search of submeshes in maps
|
// avoid search of submeshes in maps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user