查看单个帖子
旧 2009-05-06, 09:53 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)