private static XDesign_Point[] XDesign_Points(MDesign_Path mPath) { var result = new XDesign_Point[mPath.Points.Count]; for (var idx = 0; idx < mPath.Points.Count; ++idx) { var pointWebData = new XDesign_Point(); result[idx] = pointWebData; pointWebData.x = mPath.Points[idx].X; pointWebData.y = mPath.Points[idx].Y; } return(result); }
private static XDesign_Point[] XDesign_Points(IPath path) { var result = new XDesign_Point[path.SegmentCount]; for (var idx = 0; idx < path.SegmentCount; ++idx) { var segment = path.GetSegment(idx); var pointWebData = new XDesign_Point(); result[idx] = pointWebData; pointWebData.x = (int)segment.Origin.X.Value; pointWebData.y = (int)segment.Origin.Y.Value; } return(result); }