Canguro.Commands.Model.IntersectCmd.Run C# (CSharp) 메소드

Run() 공개 메소드

public Run ( Canguro services ) : void
services Canguro
리턴 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