Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="V"></typeparam>
        /// <typeparam name="E"></typeparam>
        /// <typeparam name="F"></typeparam>
        /// <param name="mesh"></param>
        /// <param name="first"></param>
        /// <param name="position"></param>
        /// <param name="setChildIndex"></param>
        public static void Unroll <V, E, F>(HeMeshBase <V, E, F> mesh, F first, Property <V, Vec3d> position, Action <E, int> setChildIndex)
            where V : HeVertex <V, E, F>
            where E : Halfedge <V, E, F>
            where F : HeFace <V, E, F>
        {
            var unroller = new HeMeshUnroller <V, E, F>(mesh, first, position);

            unroller.Unroll(setChildIndex);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="V"></typeparam>
        /// <typeparam name="E"></typeparam>
        /// <typeparam name="F"></typeparam>
        /// <param name="mesh"></param>
        /// <param name="first"></param>
        /// <param name="position"></param>
        /// <param name="setChildIndex"></param>
        public static void Unroll <V, E, F>(HeMeshBase <V, E, F> mesh, F first, Property <V, Vec3d> position, Action <E, int> setChildIndex)
            where V : HeMeshBase <V, E, F> .Vertex
            where E : HeMeshBase <V, E, F> .Halfedge
            where F : HeMeshBase <V, E, F> .Face
        {
            var unroller = new HeMeshUnroller <V, E, F>(mesh, first, position);

            unroller.DetachFaceCycles(setChildIndex);
            unroller.Unroll();
        }