/// <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) { Rhino.Geometry.Mesh mesh = new Rhino.Geometry.Mesh(); bool open = false; DA.GetData(0, ref mesh); DA.GetData(1, ref open); MeshViewer viewer = new MeshViewer(mesh.ToCustomMesh()); if (open) { viewer.BuildViewer(); } }