Ejemplo n.º 1
0
        /// <summary>
        /// ids = null returns all nodes in model
        /// </summary>
        public static List <Node> ToBHoM(this cPointObj pointObj, List <string> ids)
        {
            List <Node> bhNodes   = new List <Node>();
            int         nameCount = 0;

            string[] nameArr = { };

            if (ids == null)
            {
                pointObj.GetNameList(ref nameCount, ref nameArr);
                ids = nameArr.ToList();
            }

            foreach (string id in ids)
            {
                bhNodes.Add(pointObj.ToBHoM(id));
            }

            return(bhNodes);
        }