Exemplo n.º 1
0
        internal static SwCurve[] GetBoundary(this ISwPlanarSheetBody body)
        {
            var face  = body.Body.IGetFirstFace();
            var edges = face.GetEdges() as object[];
            var segs  = new SwCurve[edges.Length];

            for (int i = 0; i < segs.Length; i++)
            {
                var curve = (edges[i] as IEdge).IGetCurve();
                segs[i] = SwSelObject.FromDispatch <SwCurve>(curve);
            }

            return(segs);
        }
Exemplo n.º 2
0
        internal static SwCurve[] GetBoundary(this ISwPlanarSheetBody body)
        {
            var face  = body.Body.IGetFirstFace();
            var edges = face.GetEdges() as object[];
            var segs  = new SwCurve[edges.Length];

            for (int i = 0; i < segs.Length; i++)
            {
                var curve = ((IEdge)edges[i]).IGetCurve();
                segs[i] = ((SwObject)body).OwnerApplication.CreateObjectFromDispatch <SwCurve>(curve, ((SwObject)body).OwnerDocument);
            }

            return(segs);
        }