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();
        }
Exemple #2
0
        /// <summary>
        /// Smooth the current mesh.
        /// </summary>
        public void Smooth()
        {
            numbering = NodeNumbering.None;

            ISmoother smoother = new SimpleSmoother(this);
            smoother.Smooth();
        }