历遍polyline2d的每个端点并获取凸度

Polyline2d plineEnt = ent as Polyline2d;    

Point3dCollection pLinePtList = new Point3dCollection();//将polyline2d的各个端点保存到plinePtList中。

 List bulgeList = new List();

 IEnumerator vertices = plineEnt.GetEnumerator();     

  while (vertices.MoveNext())

   {

 ObjectId id = (ObjectId)vertices.Current;

Vertex2d vtx = (Vertex2d)id.GetObject(OpenMode.ForRead);

        bulgeList.Add(vtx.Bulge);
        pLinePtList.Add(plineEnt.VertexPosition(vtx));

    }

你可能感兴趣的:(ZWCAD,.NET,API开发)