/// <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 s = new StructureType(); List <Curve> dirCurves = new List <Curve>(); if (!DA.GetData(0, ref s)) { return; } if (!DA.GetDataList(1, dirCurves)) { return; } s.AlignMaterialAxisWithCurves(dirCurves.ToArray()); s.RegenerateDMatrices(); DA.SetData(0, s); }