예제 #1
0
        public void ApplyToSquareByBlockedMeshes(TriangleElement Tri, double CodendLengthInMeshes, double NumBlockedMeshes)
        {
            double VTriMin = (Tri.VCoord).Min();

            if (VTriMin >= (CodendLengthInMeshes - NumBlockedMeshes))
            {
                Tri.HasCatch = true;
            }
            else
            {
                Tri.HasCatch = false;
            }
        }
예제 #2
0
        //=========================
        // methods
        //=========================

        public void ApplyByBlockingRatio(TriangleElement Tri, double CodendLength, double LengthRatio)
        {
            double TriMinY = (new double[3] {
                Tri.n1.Y, Tri.n2.Y, Tri.n3.Y
            }).Min();

            if (TriMinY >= (1 - LengthRatio) * CodendLength)
            {
                Tri.HasCatch = true;
            }
            else
            {
                Tri.HasCatch = false;
            }
        }