public override void OnNotification(string objectName, Object data) { var shape = data as Shape2d; if (shape != null) { NodeHelper.AddShape(_solver.Geometry, shape); } }
/// <summary> /// Clears all the magic points from the solver and fills again the /// solver with the new magic ponts /// </summary> private void RegenerateSolver() { // Clear the magic points _solver.Geometry.Children.Clear(); // Add the nmagic points from the current geometry foreach (Shape2d shape2d in _drawnShapesList) { NodeHelper.AddShape(_solver.Geometry, shape2d); } }