/// <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) { StructureType structure = new StructureType(); double scaleFac = new double(); List <Mesh> meshes = new List <Mesh>(); if (!DA.GetData(0, ref structure)) { return; } if (!DA.GetData(1, ref scaleFac)) { return; } foreach (MiStrAnEngine.Vector v in structure.eigenVecs) { meshes.Add(structure.GenerateEigenMode(v, scaleFac)); } DA.SetDataList(0, meshes); }