高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】pelliparc3d.set exception
pelliparc3d.set exception
pelliparc3d.set exception
i get an exception when i call the pelliparc3d.set(...) function. am i calling this correctly? the data for the pell object looks valid. i am using 1.10 (2nd edition) builder 6 libraries.
oddbellipseptr pell = pent;
odgepoint3d cen1;
odgevector3d normal_vector,major;
double sang,eang,ratio;
odgeelliparc3d pelliparc3d;
pell->get(cen1,normal_vector,major,ratio,sang,eang);
pelliparc3d.set(pell->center(), pell->majoraxis(), pell->minoraxis(), pell->majoraxis().length(), pell->minoraxis().length(), sang, eang);
rauli,
your code looks like correctly. but. i think the better to check major & minor before set(). perhaps you got a degenerate date by get(). could you send your sample or describe situation with more detail?
thanks,
misha
misha kuzinets
|