/// <summary>
 /// Obtain source objects already in model.
 /// </summary>
 /// <returns></returns>
 public static Source[] GetSource(int No_of_Rays)
 {
     UI.PachydermAc_PlugIn p = UI.PachydermAc_PlugIn.Instance;
     Source[] Srcs;
     p.Source(out Srcs);
     return(Srcs);
 }
 /// <summary>
 /// Obtain source objects already in model.
 /// </summary>
 /// <returns></returns>
 public static Hare.Geometry.Point[] GetSource()
 {
     UI.PachydermAc_PlugIn p = UI.PachydermAc_PlugIn.Instance;
     Hare.Geometry.Point[] SPT;
     p.SourceOrigin(out SPT);
     return(SPT);
 }
            /// <summary>
            /// Obtain receiver objects already in model.
            /// </summary>
            /// <returns></returns>
            public static List <Hare.Geometry.Point> GetReceivers()
            {
                UI.PachydermAc_PlugIn      p = UI.PachydermAc_PlugIn.Instance;
                List <Hare.Geometry.Point> RPT;

                p.Receiver(out RPT);

                return(RPT);
            }
 /// <summary>
 /// Shorthand tool used to run a simulation.
 /// </summary>
 /// <param name="Sim">the simulation to run...</param>
 /// <returns>the completed simulation...</returns>
 public static Simulation_Type Run_Simulation(Simulation_Type Sim)
 {
     UI.PachydermAc_PlugIn  plugin  = UI.PachydermAc_PlugIn.Instance;
     UI.Pach_RunSim_Command command = UI.Pach_RunSim_Command.Instance;
     if (command == null)
     {
         return(null);
     }
     command.Reset();
     command.Sim = Sim;
     Rhino.RhinoApp.RunScript("Run_Simulation", false);
     return(command.Sim);
 }
 /// <summary>
 /// Clears the custom mapping control of all stored data.
 /// </summary>
 public static void ClearCMControl()
 {
     UI.PachydermAc_PlugIn Pach = UI.PachydermAc_PlugIn.Instance;
     UI.Pach_MapCustom.Clear();
 }
 /// <summary>
 /// Adds dataset to the custom mapping control.
 /// </summary>
 /// <param name="Title">the alias for the dataset.</param>
 /// <param name="Values">the calculated values for each point.</param>
 /// <param name="M">the mesh to be used.</param>
 public static void AddToCMControl(string Title, double[] Values, Mesh M)
 {
     UI.PachydermAc_PlugIn Pach = UI.PachydermAc_PlugIn.Instance;
     UI.Pach_MapCustom.Add_Result(Title, Values, M);
 }