查看单个帖子
旧 2009-05-07, 05:11 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】ransformation Matrices

transformation matrices
transformation matrices
i am using the odamdiapp code in an attempt to add new elements to a drawing. i would like firstly to add lines. i can obtain the screen coordinates (cpoint) of the mouse click positions. what i need to find out is how i transform these coordinates to world coordinates in order to add the line to the database. i have tried the various matrices available from odgsview but none of them seem to be the correct transform. any assistance would be greatly appreciated.

use inverted odgsview::worldtodevicematrix(), however odgematrix3d::invert() would fail if odgsview::worldtodevicematrix() has perspective transform.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)