Esempio 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)
        {
            //define instances
            List <Point3d> ptList = new List <Point3d>();
            double         factor = 0;

            //Get data
            if (!DA.GetDataList(0, ptList))
            {
                return;
            }
            if (!DA.GetData(1, ref factor))
            {
                return;
            }

            //Calculate
            Polyline hull = Compute.ConcaveHull(ptList, factor);

            //Set data
            DA.SetData(0, hull);
        }