//[IsVisibleInDynamoLibrary(false)]
        /// <summary>
        /// Adds the specified shape point.
        /// </summary>
        /// <param name="shapePoint">The shape point.</param>
        /// <returns></returns>
        public ShapePointArray Add(ShapePoint shapePoint)
        {
            Utils.Log(string.Format("ShapePointArray.Add started...", ""));

            ShapePointArray spa = this.Copy();

            var sp = shapePoint.Copy();

            sp.SetId(spa.Points.Count);
            spa.Points.Add(sp);

            Utils.Log(string.Format("ShapePointArray.Add completed.", ""));

            return(spa);
        }
예제 #2
0
        /// <summary>
        /// Bies the point featureline.
        /// </summary>
        /// <param name="point">The point.</param>
        /// <param name="featureline">The featureline.</param>
        /// <returns></returns>
        public static ShapePoint ByPointFeatureline(Point point, Featureline featureline)
        {
            ShapePoint sp = new ShapePoint(point, featureline);

            return(sp);
        }