查看单个帖子
旧 2009-05-06, 02:45 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how to get the model space point to screen poin

how to get the model space point to screen point ?
how to get the model space point to screen point ?
hello
i want calculate the model coordinate to screen coordinate
opendwg have three kinds of matrix (screenmatrix, worldtodevicematrix, viewingmatrix)
how to use the three kinds of matrix for get the screen coordinate from model coordinate.
inverse case calcuate from screen coordinate to model coordinate is like this
wcspt.transformby((pview->screenmatrix() * pview->projectionmatrix()).inverse());
wcspt.transformby(odabstractviewpeptr(pview)->eyetoworld(pview));
i want calcuate from model coordinate fff">to screen coordinatefff">.
i confuse the matrix calculation.
help me.
last edited by cat12; 8th december 2006 at 01:09 amfff">.
hi,
odgsview:bjecttodevicematrix();
odgsview::worldtodevicematrix();
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)