1、获取线的点集:geoline->GetPoints
//! \brief 得到指定子对象的点串的指针。
//! \param nSubIndex [in] 子对象索引。
//! \return 返回子对象的点串的指针。
const GEOMETRY_APIF UGPoint2D* GetPoints(UGint nSubIndex=0) const;
2、追加线可以参考下面的逻辑:
构建一个线对象: UGPoint2D point1 = UGPoint2D(112,34); UGPoint2D point2 = UGPoint2D(112,36); uggeoline* geoline = new uggeoline (); geoline -> Make(point1,point2);
往上面构建的线对象添加一个子对象: UGPoint2D *points=new UGPoint2D(); points[0].x=112; points[0].y=36; points[1].x=114; points[1].y=40; UGbool aa = geoline ->AddSub(points ,2);
往第一步构建的线对象中添加节点: UGPoint2D *points=new UGPoint2D(); points[0].x=114; points[0].y=40; UGbool bb = geoline->InsertPoint (0,2,*points);