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:

lanetoworld(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:

lanetoworld(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