mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-05-06 14:50:47 +05:00
IPAL22823: exception when display operation is applied for edited but not computed mesh
In SMESH_VisualObjDef::GetUnstructuredGrid(), compact myGrid if it is a shallowCopy of SMDS_UnstructuredGrid
This commit is contained in:
parent
5ced91ed62
commit
cb763eea38
@ -595,7 +595,12 @@ bool SMESH_VisualObjDef::GetEdgeNodes( const int theElemId,
|
|||||||
|
|
||||||
vtkUnstructuredGrid* SMESH_VisualObjDef::GetUnstructuredGrid()
|
vtkUnstructuredGrid* SMESH_VisualObjDef::GetUnstructuredGrid()
|
||||||
{
|
{
|
||||||
//MESSAGE("SMESH_VisualObjDef::GetUnstructuredGrid " << myGrid);
|
if ( !myLocalGrid && !GetMesh()->isCompacted() )
|
||||||
|
{
|
||||||
|
GetMesh()->compactMesh();
|
||||||
|
vtkUnstructuredGrid *theGrid = GetMesh()->getGrid();
|
||||||
|
myGrid->ShallowCopy(theGrid);
|
||||||
|
}
|
||||||
return myGrid;
|
return myGrid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user