几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】crash in zoomextend ,version is 1.12.04 (http://www.dimcax.com/hust/showthread.php?t=15534)

yang686526 2009-05-04 06:33 PM

【转帖】crash in zoomextend ,version is 1.12.04
 
crash in zoomextend ,version is 1.?12.?04
crash in zoomextend ,version is 1.?12.?04
hi:
i use lib dwgdirect 1.12.04 ,and vc 6.0;sp5.
when i load file ,in zoomextend called function pview->setview, the application carsh.
can you tell me ,what's wrong with it.
thanks for your help.
attached files
the file contains a line (the last entity in model space with z coordinates about 1.e+126.
this causes problems while calculating view direction like this:
odgepoint3d position(x, y, 1.e+126);
odgepoint3d target = position + odgevector3d(0,0,1.);
// here position == target and (target - position) is zero vector.
sergey slezkin


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