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

how to convert point from wcs to ocs?
how to convert point from wcs to ocs?
hello,
i have one question.
how can i convert point from wcs to ocs?
i have an arc entity, which is drawn in it's own ocs. center point of this entity is:
x = 10
y = 7.5
z = 0
dwgdirect library shows center point in wcs:
x = 4.2310360496972
y = 7.2014349735174
z = -9.2998746372391
i want to get coordinates in ocs, so i call :
point.transformby(odgematrix3d::worldtoplane(parce nt->normal()));
but i get these coordinates:
x = 6.9700347049984
y = -10.376348886343
z = 0
how can i get the real ocs coordinates(10,7.5,0)
am i doing something wrong, or is this just not possible?
i have attached the file.
regards, tomaz
attached files
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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)