Example #1
0
        public void Execute(IVectorImageProvider imageProvider)
        {
            List <Line2D> lines = Line2DFunctions.TestLineIntersections(imageProvider.CurrImage.GetPrimitives <Line2D>());

            foreach (Line2D l in lines)
            {
                PrimitiveRenderData.Get(l).Color = Colors.Line2DIntersection;
            }
        }
        public void Execute(IVectorImageProvider imageProvider)
        {
            List <Line2D> lines = new List <Line2D>();

            foreach (Primitive2D p in imageProvider.CurrImage.primitives)
            {
                if (p is Shape2D)
                {
                    lines.AddRange(Line2DFunctions.TestLineIntersections((p as Shape2D).GetLines()));
                }
            }
            imageProvider.CurrImage.primitives.AddRange(lines);
        }