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

yang686526 2009-05-05 10:59 AM

【转帖】float divide by zero
 
float divide by zero.
float divide by zero.
hello people,
with the attached drawing, if i iterate through model space and getgeomextents from the 3dsolids, it throws the following exception :
"first-chance exception in project1.exe (dimensionx.ocx): 0xc000008e: float divide by zero."
code i use is as follows :
odgeextents3d extents;
try {
if ( entityptr->getgeomextents(extents) == eok ) {
}
} catch (.....................da da da etc....
is there anything i am doing wrong? is there a work around i can do?
thanx in advance as usual, and hope everyone has a great day.
cheers
jason
attached files
this is dd bug. it will be fixed in 1.14
sergey slezkin


所有的时间均为北京时间。 现在的时间是 12:32 AM.