Пример #1
0
 private void BtnDilatationCommandHandler_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     if (_voronoiGraphCopy.Edges.Count != _voronoiGraph.Edges.Count)
     {
         _erosionDilatationValue++;
         tbErosionDilatation.Text = $"{_erosionDilatationValue}";
         _voronoiGraph            = Fortune.DilationVG(_voronoiGraphCopy, _voronoiGraph, ref _vVNodes);
         if (_voronoiGraph != null)
         {
             _edges = _voronoiGraph.Edges.MapEdgeHashSetToEdgeList(ActualHeight, false, _scaled).ToList();;
             this.MyDotViewer.LoadPlain(_vVNodes, _edges, _fileName, _boundingBox, _frame, (_frame != null ? 1 : 0.3));
             _tips.Clear();
             _tips = _dataList.GetOneKeyValues();
             Title = $"Pattern Analyser - Dilatation ({_erosionDilatationValue}) - Delaunay Triangulation ({_fileName})";
         }
     }
 }