Пример #1
0
        /// <summary>
        /// performs the Explicit Euler (Taubin) smoothing
        /// </summary>
        private void ExplicitEulerSmoothing(TriangleMesh mesh, int iterations)
        {
            /// output vertex positions (after solving/smoothing)
            double[] xx, xy, xz;
            xx = xy = xz = null;

            /// get current world positions
            MeshLaplacian.GetEuclideanCoordinates(mesh, out xx, out xy, out xz);



            /// update mesh
            MeshLaplacian.UpdateMesh(mesh, xx, xy, xz);
        }