lincoln_ma 发表于 2010-6-7 07:38:00

[求助]Polyline.AddVertexAt()中Entity Coordinate System of the polyline是怎么确

[求助]Polyline.AddVertexAt()中Entity Coordinate System of the polyline是怎么确定的?我在增加polyline对象的角点的时候,遇到了这个问题。

public void AddVertexAt(
    int index,
    Point2d pt,
    double bulge,
    double startWidth,
    double endWidth
);

pt must be specified in the Entity Coordinate System of the polyline, not in the World Coordinate System (WCS).

其中我的polyline对象是在xoz平面上的,其Entity Coordinate System理所当然就是xoz平面,但其Entity Coordinate System的坐标圆点应该怎么确定呢?
望指点。

雪山飞狐_lzh 发表于 2010-6-7 10:12:00

ECS,即对象坐标系,三维点使用pl.GetPlane()获取pl所在平面转换为二维点

            Plane plane = pl.GetPlane();
            Point3d pnt = new Point3d();
            Point2d p2d = pnt.Convert2d(plane);
页: [1]
查看完整版本: [求助]Polyline.AddVertexAt()中Entity Coordinate System of the polyline是怎么确