Exemplo n.º 1
0
        /// <summary>
        /// The location for a given eltIndex for a node will be one
        /// of { Null, Interior, Boundary }.
        /// A node may be on both the boundary and the interior of a point;
        /// in this case, the rule is that the node is considered to be in the boundary.
        /// The merged location is the maximum of the two input values.
        /// </summary>
        /// <param name="label2"></param>
        /// <param name="eltIndex"></param>
        public virtual LocationType ComputeMergedLocation(Label label2, int eltIndex)
        {
            LocationType loc = Label.GetLocation(eltIndex);

            if (!label2.IsNull(eltIndex))
            {
                LocationType nLoc = label2.GetLocation(eltIndex);
                if (loc != LocationType.Boundary)
                {
                    loc = nLoc;
                }
            }
            return(loc);
        }
Exemplo n.º 2
0
 /// <summary>
 /// The location for a given eltIndex for a node will be one
 /// of { Null, Interior, Boundary }.
 /// A node may be on both the boundary and the interior of a point;
 /// in this case, the rule is that the node is considered to be in the boundary.
 /// The merged location is the maximum of the two input values.
 /// </summary>
 /// <param name="label2"></param>
 /// <param name="eltIndex"></param>
 public virtual LocationType ComputeMergedLocation(Label label2, int eltIndex)
 {
     LocationType loc = Label.GetLocation(eltIndex);
     if (!label2.IsNull(eltIndex))
     {
         LocationType nLoc = label2.GetLocation(eltIndex);
         if (loc != LocationType.Boundary)
             loc = nLoc;
     }
     return loc;
 }