示例#1
0
        /// <summary>
        /// inverse polygons (flip normals, reverse point order) in this node and all its children
        /// </summary>
        public void Invert()
        {
            foreach (var polygon in Polygons)
            {
                polygon.Flip();
            }

            Plane.Flip();

            if (FrontChild != null)
            {
                FrontChild.Invert();
            }

            if (BackChild != null)
            {
                BackChild.Invert();
            }

            MeshUtils.Swap(ref FrontChild, ref BackChild);
        }