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

yang686526 2009-05-06 06:49 PM

【转帖】ocs coordinates
 
ocs coordinates
ocs coordinates
while i am reading through model space entities, some objects are stored in a ocs system and the coordinates need transforming into the wcs ones.
how do i go about doing this?
thanks.
andrew
you can use odgematrix3d::worldtoplane(odgevector3d normal) and odgematrix3d::planetoworld(odgevector3d normal) to get ocs<->wcs transforms.
note that most functions in dd return wcs coordinates.
sergey slezkin
under dwgdirect, how can one ascertain that they must transform the coordinate into wcs (using th emethods you mentioned)? i have to ensure i am using the wcs values.
andrew
check the help docs for each member function--it will list what coordinate system is used for the returned coordinates.

great, i will check.
andrew
quote:
originally posted by sergey slezkin
you can use odgematrix3d::worldtoplane(odgevector3d normal) and odgematrix3d::planetoworld(odgevector3d normal) to get ocs<->wcs transforms.
note that most functions in dd return wcs coordinates.
i also found there are methods, like vertexposition and getpointat which return the coordinate in wcs.
these functions are very useful.
andrew


所有的时间均为北京时间。 现在的时间是 09:15 AM.