Exemplo n.º 1
0
        /// <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)
        {
            PlanktonMesh   P      = new PlanktonMesh();
            List <Point3d> Points = new List <Point3d>();

            if ((!DA.GetData <PlanktonMesh>(0, ref P)) || (!DA.GetDataList(1, Points)))
            {
                return;
            }
            PlanktonMesh pMesh = P.ReplaceVertices(Points);

            DA.SetData(0, pMesh);
        }