几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to get the model space point to screen poin (http://www.dimcax.com/hust/showthread.php?t=16691)

yang686526 2009-05-06 02:45 PM

【转帖】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::objecttodevicematrix();
odgsview::worldtodevicematrix();


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