几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】[求助]多段线求定长位置点的问题 (http://www.dimcax.com/hust/showthread.php?t=6765)

yang686526 2009-04-16 03:34 PM

【转帖】[求助]多段线求定长位置点的问题
 
[求助]多段线求定长位置点的问题
[求助]多段线求定长位置点的问题
多段线求定长位置点的问题
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点
谢谢各位,问题已解决


所有的时间均为北京时间。 现在的时间是 08:10 AM.