예제 #1
0
        /// <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)
        {
            Guanaco.Model model = null;
            DA.GetData(0, ref model);
            List <RG.GeometryBase> GHMesh      = new List <RG.GeometryBase>();
            List <RG.LineCurve>    barElements = new List <RG.LineCurve>();

            GHMesh.Add(MeshUtil.GetRhinoMesh(model.Mesh, out barElements));
            GHMesh.AddRange(barElements);
            DA.SetDataList(0, GHMesh);
        }