高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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( ).
|