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