Fix for '54677: TC-9.5.0: SMESH: ball visualization failed'

This commit is contained in:
rnv 2020-05-27 23:56:31 +03:00
parent 75b15d2531
commit 501b1a0f68

View File

@ -217,6 +217,7 @@ namespace SMESH
void SetBallPosition(SMESH_Actor* theActor,TVTKIds& theIds, double theDiameter) void SetBallPosition(SMESH_Actor* theActor,TVTKIds& theIds, double theDiameter)
{ {
vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid(); vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
myBallPolyData->SetPoints(NULL);
myBallPolyData->Reset(); myBallPolyData->Reset();
myBallPolyData->DeleteCells(); myBallPolyData->DeleteCells();
myBallPolyData->SetPoints(aGrid->GetPoints()); myBallPolyData->SetPoints(aGrid->GetPoints());