Exemple #1
0
        /// <summary>
        /// Computes a geometry representing the boundary of a geometry,
        /// using an explicit <see cref="IBoundaryNodeRule"/>.
        /// </summary>
        /// <param name="g">The input geometry.</param>
        /// <param name="bnRule">The Boundary Node Rule to use.</param>
        /// <returns>The computed boundary.</returns>
        public static Geometry GetBoundary(Geometry g, IBoundaryNodeRule bnRule)
        {
            var bop = new BoundaryOp(g, bnRule);

            return(bop.GetBoundary());
        }
Exemple #2
0
        /// <summary>
        /// Computes a geometry representing the boundary of a geometry.
        /// </summary>
        /// <param name="g">The input geometry.</param>
        /// <returns>The computed boundary.</returns>
        public static Geometry GetBoundary(Geometry g)
        {
            var bop = new BoundaryOp(g);

            return(bop.GetBoundary());
        }