private void Smooth() { if (mesh == null || settings.ExceptionThrown) return; if (!mesh.IsPolygon) { return; } var smoother = new SimpleSmoother(); try { smoother.Smooth(this.mesh); statisticView.UpdateStatistic(mesh); HandleMeshUpdate(); } catch (Exception ex) { LockOnException(); DarkMessageBox.Show("Exception - Smooth", ex.Message, MessageBoxButtons.OK); } UpdateLog(); }
/// <summary> /// Smooth the current mesh. /// </summary> public void Smooth() { numbering = NodeNumbering.None; ISmoother smoother = new SimpleSmoother(this); smoother.Smooth(); }