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

yang686526 2009-05-06 09:53 PM

【转帖】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


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