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

Polyline2d plineEnt = ent as Polyline2d;    

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

 List<double> bulgeList = new List<double>();

 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));

    }

没有更多推荐了,返回首页