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

yang686526 2009-05-07 05:11 PM

【转帖】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.


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