![]() |
【转帖】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. |