 - /// <summary>
- /// 获取多段线的顶点
- /// </summary>
- /// <param name="pline">多段线对象</param>
- public static Point3dCollection GetPolyPoints(this Polyline pline)
- {
- Point3dCollection pts = new Point3dCollection();
- int i;
- for (i = 0; i < pline.NumberOfVertices; i++)
- {
- Point3d pt = pline.GetPoint3dAt(i);
- pts.Add(pt);
- }
- return pts;
- }
|