Пример #1
0
        /// <summary>
        /// Applies mutator as configured to a voxel tree.
        /// </summary>
        /// <param name="target">the voxel tree to apply the mutator to</param>
        public void apply(OcTree target)
        {
            Application app = setup(target);
            //applyMasksToApplication(app, target);

            System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
            watch.Start();
            apply(app, target.getHead(), new Index());
            watch.Stop();
            UnityEngine.MonoBehaviour.print("Mutator Apply Time: " +watch.Elapsed.TotalSeconds);
            foreach(VoxelJob job in app.jobs)
                job.execute();
            target.dirty = true;
        }