查看单个帖子
旧 2009-04-16, 03:34 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】[求助]多段线求定长位置点的问题

[求助]多段线求定长位置点的问题
[求助]多段线求定长位置点的问题
多段线求定长位置点的问题
acdbpolyline* ppl = new acdbpolyline(4); //多段线逆时针构造
ppl->addvertexat(0,rendpt.convert2d(acgeplane::kxyplane),bulget); //rendpt为多段线起始点
ppl->addvertexat(1,tendpt.convert2d(acgeplane::kxyplane),bulgel);
ppl->addvertexat(2,lendpt.convert2d(acgeplane::kxyplane),bulgeb);
ppl->addvertexat(3,bendpt.convert2d(acgeplane::kxyplane),bulger);
ppl->setclosed(adesk::ktrue);//多段线封闭
acgepoint3d pt_tmp;
ppl->getpointatdist(10.0,pt_tmp);
可是程序得到的点pt_tmp是距离rendpt10.0的顺时针点,而不是逆时针的点
请高手帮忙,我要的是逆时针得到pt_tmp点
谢谢各位,问题已解决
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)