Exemple #1
0
 internal void RemoveGrainOriginPoints(List <Point> pointsToDraw)
 {
     foreach (Point p in pointsToDraw)
     {
         CurrentGrid.Cells[p.X, p.Y].ChangeState(0);
         OriginGrains.Remove(p);
     }
     if (OriginGrains.Count > 0)
     {
         RecalculateOriginForGrid();
     }
     else
     {
         CurrentGrid.Clear();
         Iteration = 1;
     }
 }
 internal void ResetCell(int x, int y)
 {
     CurrentGrid.Cells[x, y].Reset();
     OriginGrains.Remove(CurrentGrid.Cells[x, y].CurrentPosition);
 }