查看单个帖子
旧 2009-05-05, 11:21 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】getecs

getecs ?
getecs ?
what shoud we use instead of oddbentity::getecs method
thanks in advance for any help.
regards
chudomir
sorry, forgot to say:
getecs was in version 1.091 and not in version 1.10
getecs() was always returning identity matrix. in objectarx it returns identity matrix for all autocad entities too. we removed it from interface to avoid confusions.
to get transformation between wcs and ocs odgematrix3d functions can be used (planetoworld() and worldtoplane).
for some entities elevation should be taken into account.
btw, most accessors return coordinates in wcs.
sergey slezkin
thank you for your reply.
so it evidently depends on the type of entity - for example to retrieve the ocs of oddbarc, i should call odgematrix3d:lanetoworld(oddbarc::normal())?
regards
chudomir
yes. but note that center(), getstartpoint(), getendpoint() return wcs coordinates.
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)