示例#1
0
文件: Contour.cs 项目: miyu/Poly2Tri
        private bool IsPointInsideContour(Point2D p)
        {
            if (PolygonUtil.PointInPolygon2D(this, p))
            {
                return(_holes.All(c => !c.IsPointInsideContour(p)));
            }

            return(false);
        }
示例#2
0
        public bool IsPointInsideContour(Point2D p)
        {
            if (PolygonUtil.PointInPolygon2D(this, p))
            {
                foreach (Contour c in mHoles)
                {
                    if (c.IsPointInsideContour(p))
                    {
                        return(false);
                    }
                }

                return(true);
            }

            return(false);
        }
示例#3
0
 public bool IsPointInside(TriangulationPoint p)
 {
     return(PolygonUtil.PointInPolygon2D(this, p));
 }