Salome HOME
Fix for '54677: TC-9.5.0: SMESH: ball visualization failed'
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_AddMeshElementDlg.cxx
index e4654aa620cc1ab8b8104f30185e55b89ba0805f..165b1487c4426442cdb0f8d1cfac28fb8d4a57ea 100644 (file)
@@ -217,6 +217,7 @@ namespace SMESH
     void SetBallPosition(SMESH_Actor* theActor,TVTKIds& theIds, double theDiameter)
     {
       vtkUnstructuredGrid *aGrid = theActor->GetUnstructuredGrid();
+      myBallPolyData->SetPoints(NULL);
       myBallPolyData->Reset();
       myBallPolyData->DeleteCells();
       myBallPolyData->SetPoints(aGrid->GetPoints());