几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】problem with getarcsega (http://www.dimcax.com/hust/showthread.php?t=18122)

yang686526 2009-05-06 11:18 PM

【转帖】problem with getarcsega
 
problem with getarcsegat
problem with getarcsegat
hello all,
there was a bug in dwgdirect version 1.10 where a polyline with coincident vertices caused getarcsegat to crash. this was fixed in version 1.11 ("1757 explode() and getarcsegat() crash if polyline has 2 coincident vertices with non-zero bulge on the first one"). however, this bug seems to have crept back in! i am using borland builder 6. i can mask the problem with a try - catch, but i am not sure this the ideal solution.
regards,
geoff briggs
explode() for such polyline is fixed. and if segtype() returns oddbpolyline::kcoincident getarcsegat() must not be called.
sergey slezkin
thanks for your quick response, sergey.
i hadn't spotted 'oddbpolyline::kcoincident' before. that certainly does the trick. thanks again.
regards,
geoff briggs.


所有的时间均为北京时间。 现在的时间是 11:48 PM.