Example #1
0
        public static List<Quadrilateral> GetQuadrilateralsFromPoints(ConcavePolygon poly, List<Point> points)
        {
            List<Quadrilateral> quads = GetQuadrilateralsFromPoints(points);
            List<Quadrilateral> containing = new List<Quadrilateral>();

            foreach (Quadrilateral quad in quads)
            {
                if (poly.Contains(quad)) containing.Add(quad);
            }

            return containing;
        }
Example #2
0
        public static List<Triangle> GetTrianglesFromPoints(ConcavePolygon poly, List<Point> points)
        {
            List<Triangle> tris = GetTrianglesFromPoints(points);
            List<Triangle> containing = new List<Triangle>();

            foreach (Triangle tri in tris)
            {
                if (poly.Contains(tri)) containing.Add(tri);
            }

            return containing;
        }