mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 02:30:33 +05:00
Fix SMESH_Mesh_i::ReplaceShape()
This commit is contained in:
parent
07ac4da8b2
commit
8df5094ecd
@ -262,14 +262,16 @@ GEOM::GEOM_Object_ptr SMESH_Mesh_i::GetShapeToMesh()
|
|||||||
void SMESH_Mesh_i::ReplaceShape(GEOM::GEOM_Object_ptr theNewGeom)
|
void SMESH_Mesh_i::ReplaceShape(GEOM::GEOM_Object_ptr theNewGeom)
|
||||||
throw (SALOME::SALOME_Exception)
|
throw (SALOME::SALOME_Exception)
|
||||||
{
|
{
|
||||||
TopoDS_Shape S = _impl->GetMeshDS()->ShapeToMesh();
|
TopoDS_Shape S = _impl->GetShapeToMesh();
|
||||||
GEOM_Client* geomClient = _gen_i->GetShapeReader();
|
GEOM_Client* geomClient = _gen_i->GetShapeReader();
|
||||||
TCollection_AsciiString aIOR;
|
TCollection_AsciiString aIOR;
|
||||||
if (geomClient->Find(S, aIOR)) {
|
if (geomClient->Find(S, aIOR)) {
|
||||||
geomClient->RemoveShapeFromBuffer(aIOR);
|
geomClient->RemoveShapeFromBuffer(aIOR);
|
||||||
}
|
}
|
||||||
_impl->UndefShapeToMesh();
|
|
||||||
SetShape(theNewGeom);
|
// re-assign global hypotheses to the new shape
|
||||||
|
_mainShapeTick = theNewGeom->GetTick() + 1;
|
||||||
|
CheckGeomModif();
|
||||||
}
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user