/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { int tag = -1; DA.GetData(0, ref tag); DA.GetData(1, ref count); DA.GetData(2, ref coef); ITransfinite data = new ITransfinite(); data.Dim = 1; data.Tag = tag; data.MethodType = type.ToString(); data.NodesNumber = count; data.Coef = coef; DA.SetData(0, data); }
/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { int tag = -1; List <int> corners = new List <int>(); DA.GetData(0, ref tag); double[] cList = new double[corners.Count]; for (int i = 0; i < corners.Count; i++) { cList[i] = corners[i]; } ITransfinite data = new ITransfinite(); data.Dim = 3; data.Tag = tag; data.MethodType = type.ToString(); DA.SetData(0, data); }