/// <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) { Rectangle3d rec = new Rectangle3d(); DA.GetData(0, ref rec); Pen outline = null; DA.GetData(1, ref outline); Pen fill = null; DA.GetData(2, ref fill); EllipseShape shape = new EllipseShape(rec); if (outline != null) { shape.outline(outline); } if (fill != null) { shape.fill(fill); } DA.SetData(0, shape); }