几何尺寸与公差论坛

 找回密码
 注册
查看: 713|回复: 0

【转帖】presentation transforms

[复制链接]
发表于 2009-4-13 13:31:30 | 显示全部楼层 |阅读模式
presentation transforms
hi,
i'm having some difficulties using component2.presentationtransform.
the sw api help does not state to which coordinate system this transformation relates to.
is it specified to the root assembly, to the direct parent assembly of a component, or...?
i have done some test and am getting more confused. any help is more then welcome.
thanks,
tony
the coord system is related to the components origin location you are applying to for translation, scaling and rotation.
the units are meters and radians.
also, if you are using a matrix and sldworks.getmathutility to do your transformations then the 16 long array you create for the tranformation matrix has the following items:
arr(1) = pitch (radians)
arr(6) = yaw (radians)
arr(7) = roll (radians)
arr(9) = x (meters)
arr(10) = y (meters)
arr(11) = z (meters)
hi luke,
i have done some additional tests and you're correct.
the transformation is specified in relation to the parent sub-assembly and takes the current position of the component into account.
thanks for the help.
regards,
tony
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 04:07 , Processed in 0.035452 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表