/// <summary>
    /// 
    /// </summary>
    public GlassStruct(int p_index, params GlassMark[] p_glassMarks)
    {
        index = p_index;

        left = false;
        top = false;
        right = false;
        bottom = false;

        //Set marks with one index and array of colors.
        glassMarks = new GlassMark[p_glassMarks.Length];
        for (int i = 0; i < glassMarks.Length; i++)
        {
            glassMarks[i] = new GlassMark(p_glassMarks[i].markTexture);
        }

        //Set base black / white texture to fill intersections / replacement.
        GlassStruct.blackFillTexture = new Color[glassMarks[0].markTexture.Length];
        for (int i = 0; i < GlassStruct.blackFillTexture.Length; i++)
        {
            GlassStruct.blackFillTexture[i] = Color.black;
        }

        GlassStruct.whiteFillTexture = new Color[glassMarks[0].markTexture.Length];
        for (int i = 0; i < GlassStruct.whiteFillTexture.Length; i++)
        {
            GlassStruct.whiteFillTexture[i] = Color.white;
        }
    }
    /// <summary>
    ///
    /// </summary>
    public GlassStruct(int p_index, params GlassMark[] p_glassMarks)
    {
        index = p_index;

        left   = false;
        top    = false;
        right  = false;
        bottom = false;

        //Set marks with one index and array of colors.
        glassMarks = new GlassMark[p_glassMarks.Length];
        for (int i = 0; i < glassMarks.Length; i++)
        {
            glassMarks[i] = new GlassMark(p_glassMarks[i].markTexture);
        }


        //Set base black / white texture to fill intersections / replacement.
        GlassStruct.blackFillTexture = new Color[glassMarks[0].markTexture.Length];
        for (int i = 0; i < GlassStruct.blackFillTexture.Length; i++)
        {
            GlassStruct.blackFillTexture[i] = Color.black;
        }

        GlassStruct.whiteFillTexture = new Color[glassMarks[0].markTexture.Length];
        for (int i = 0; i < GlassStruct.whiteFillTexture.Length; i++)
        {
            GlassStruct.whiteFillTexture[i] = Color.white;
        }
    }