Canguro.Commands.Model.IntersectCmd.Run C# (CSharp) Method

Run() public method

public Run ( Canguro services ) : void
services Canguro
return void
        public override void Run(Canguro.Controller.CommandServices services)
        {
            List<Item> selecton = services.GetSelection();
            List<Joint> joints = new List<Joint>();
            List<LineElement> lines = new List<LineElement>();
            foreach (Item item in selecton)
            {
                if (item is Joint)
                    joints.Add((Joint)item);
                else if (item is LineElement)
                    lines.Add((LineElement)item);
            }

            JoinCmd.Intersect(services.Model, joints, lines);
        }
IntersectCmd