private void ApplyAreaAdditivePlus_Click(object sender, RoutedEventArgs e) { if (Presenter.CurrentShapeCollection == null) { return; } var result = SimplifyAlgorithms.AdditiveSimplifyByAreaPlus(Presenter.CurrentShapeCollection.Shapes, Presenter.AreaThreshold); AddShapefile(result, Presenter.CurrentShapeCollection.Title + "Adit. Area Plus" + (Presenter.AreaThreshold).ToString("#.00")); }
private void AngleApply_Click(object sender, RoutedEventArgs e) { if (Presenter.CurrentShapeCollection == null) { return; } var result = SimplifyAlgorithms.SimplifyByAngle(Presenter.CurrentShapeCollection.Shapes, Presenter.AngleThreshold); AddShapefile(result, Presenter.CurrentShapeCollection.Title + "Angle" + Presenter.AngleThreshold.ToString("#.00")); }