示例#1
0
        /// <summary>
        /// Returns true if the Polygon contains a degenerated part
        /// NonDegenerated holds the Non-Degenerated part of the polygon
        /// </summary>
        public static bool HasDegeneratedPart(this Polygon2d poly, out Polygon2d NonDegenerated)
        {
            int[] temp;
            bool  result = poly.PolygonHasDegeneratedPart(out temp);

            NonDegenerated = new Polygon2d((from i in temp select poly[i]).ToArray <V2d>());
            return(result);
        }
示例#2
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// NonDegenerated holds the Non-Degenerated part of the polygon
 /// </summary>
 public static bool PolygonHasDegeneratedPart(this Polygon2d poly, out int[] NonDegenerated)
 => poly.PolygonHasDegeneratedPart(4.0 * double.Epsilon, out NonDegenerated);
示例#3
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// </summary>
 public static bool PolygonHasDegeneratedPart(this Polygon2d poly)
 => poly.PolygonHasDegeneratedPart(4.0 * double.Epsilon);
示例#4
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// NonDegenerated holds the Non-Degenerated part of the polygon
 /// </summary>
 public static bool HasDegeneratedPart(this Polygon2d poly, double absoluteEpsilon, out int[] NonDegenerated)
 => poly.PolygonHasDegeneratedPart(absoluteEpsilon, out NonDegenerated);
示例#5
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// NonDegenerated holds the Non-Degenerated part of the polygon
 /// </summary>
 public static bool HasDegeneratedPart(this Polygon2d poly, out int[] NonDegenerated)
 => poly.PolygonHasDegeneratedPart(out NonDegenerated);
示例#6
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// </summary>
 public static bool HasDegeneratedPart(this Polygon2d poly, double absoluteEpsilon)
 => poly.PolygonHasDegeneratedPart(absoluteEpsilon);
示例#7
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// </summary>
 public static bool HasDegeneratedPart(this Polygon2d poly)
 => poly.PolygonHasDegeneratedPart();
示例#8
0
 /// <summary>
 /// Returns true if the Polygon contains a degenerated part
 /// </summary>
 public static bool HasDegeneratedPart(this Polygon2d poly)
 {
     return(poly.PolygonHasDegeneratedPart());
 }