Example #1
0
        private void FindClosestIds([NotNull] IApplicationArguments args)
        {
            IEnumerable <int> ids         = FindIdsOfClosestPoints(args.GetQueryPoint3D());
            IEnumerable <int> selectedIds = ids.Take(args.NumberOfClosestPoints).ToArray();

            ClosestIds = selectedIds;
        }
 public void Display(IApplicationArguments args)
 {
     Console.WriteLine("Used options:");
     Console.WriteLine("-------------");
     Console.WriteLine("Source                  : {0}",
                       args.Source);
     Console.WriteLine("Query Point             : {0}",
                       args.GetQueryPoint3D());
     Console.WriteLine("Shift Vector            : {0}",
                       args.GetShiftVector3D());
     Console.WriteLine("Number of closest points: {0}",
                       args.NumberOfClosestPoints);
     Console.WriteLine();
 }