//------------------------------------------------------------------------
void WidgetShowNPoints::CreatePointsIntoNewCollection()
{
- // ---------------------------------------------
int c1 = mActualCollection-1;
int c2 = mActualCollection+1;
int modelSize = lstModelShowNPoints.size();
} // for
delete m;
// ----------------- Add new Points --------------------
- vtkPoints *points;
- vtkStaticPointLocator *pointLocator;
+ vtkPoints *points = NULL;
+ vtkStaticPointLocator *pointLocator = NULL;
if (aux_mesh!=NULL)
{
points = aux_mesh->GetPoints();
} // aux_mesh
AddPoint(x,y,z,"");
}
- pointLocator->Delete();
+ if (pointLocator!=NULL) { pointLocator->Delete(); }
RefreshCollectionText();
RefreshColourCollection();
} // if size of c1LstX c2LstX