几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】invalid arc in polyline (http://www.dimcax.com/hust/showthread.php?t=16905)

yang686526 2009-05-06 04:02 PM

【转帖】invalid arc in polyline
 
invalid arc in polyline
invalid arc in polyline
i am having a problem traversing thru the first polyline in the attached drawing. the first segment is an arc with an invalid center point. do you know what the problem might be? i am using 1.10 (2nd edition).
for (unsigned int i = 0; i < ppoly->numverts(); i++)
{
double bulge = ppoly->getbulgeat(i);
if (bulge != 0.0)
{
if (i < (ppoly->numverts() - 1) || ppoly->isclosed())
{
odgecircarc3d arc;
ppoly->getarcsegat(i, arc);
odgepoint3d sp, ep, cp;
sp = arc.startpoint();
ep = arc.endpoint();
cp = arc.center();
}
}
attached files
i've got center point (5.132423, 11.603214, 0).
is it invalid?
sergey slezkin
your results looks reasonable. i get garbage values (eg 1.0e-200). could it be a problem with the builder 6 libraries again? the recent update made a huge improvement in its stability, but there still seems to be problems with functions like ppoly->getarcsegat( ) and oddbspline->getnurbsdata( ).


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