/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object can be used to retrieve data from input parameters and /// to store data in output parameters.</param> protected override void SolveInstance(IGH_DataAccess DA) { bool resetCommand = false; DA.GetData(0, ref resetCommand); if (resetCommand) { if (topoData != IntPtr.Zero) { TopoCreator.deleteStructure(topoData); } topoData = TopoCreator.initStructure(); } DA.SetData(0, topoData); }