Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 public PathObject(Path path)
 {
     this.path = path;
 }