Exemplo n.º 1
0
        internal static bool ModifyMask(ProfileSection[] profile, bool invert, int index, ref TerrainModify.Surface surface, ref TerrainModify.Heights heights, ref TerrainModify.Edges edges, ref float leftT, ref float rightT, ref float leftStartY, ref float rightStartY, ref float leftEndY, ref float rightEndY, ref bool __result)
        {
            if (index >= profile.Length)
            {
                __result = false;
                return(false);
            }

            ProfileSection section = profile[index];

            if (invert)
            {
                section = section.Inverse();
            }


            heights = section.Heights;
            surface = section.Surface;
            edges   = section.Edges;


            leftT       = section.LeftX;
            rightT      = section.RightX;
            leftStartY  = section.LeftStartY;
            leftEndY    = section.LeftEndY;
            rightStartY = section.RightStartY;
            rightEndY   = section.RightEndY;

            __result = true;
            return(false);
        }