/// <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) { List <Mesh> meshes = new List <Mesh>(); List <Box> boxes = new List <Box>(); if (!DA.GetDataList(0, meshes)) { return; } foreach (Mesh m in meshes) { boxes.Add(MeshTools.findBBox(m)); } DA.SetDataList(0, boxes); }