public static List<Curve> GetCurvesOfPoint(Point p, Path g) { List<Curve> curves = new List<Curve>(); foreach (IGraphicObject igo in g.GetGroup()) { if (igo.GetType() == typeof(Curve)) { Curve c = (Curve)igo; if (Curve.ContainsPoint(p, c) == true) { curves.Add(c); } } } return curves; }
public static List<Line> GetLinesOfPoint(Point p, Path g) { List<Line> lines = new List<Line>(); foreach (IGraphicObject igo in g.GetGroup()) { if (igo.GetType() == typeof(Line)) { Line l = (Line)igo; if (Line.ContainsPoint(p, l) == true) { lines.Add(l); } } } return lines; }
public PathObject(Path path) { this.path = path; }