高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】ransformation Matri
transformation matrix
transformation matrix
hello.
i have an application that import dxf/dwg files. i want to use the function transformby in the imported objects in order to put them on the correct place and in the correct size and orientation. the problem is that i'm not sure how to construct the transformation matrix. could somebody help me, please?
thanks in advance.
look into odgematrix3d class (gematrix3d.h). it has many functions creating standard matrixes (odgematrix3d::settotranslation, odgematrix3d::settorotation, odgematrix3d::settoscaling, etc).
sincerely yours,
george udov
thanks for your answer george.
the problem is that i don't know how to obtain the rotation, translation and scalataion of an oddbentity object. i've look for some functions in the opendwg help but i haven't found anything.
could you help me with this question?
thank you.
oddbentity doesn't have any transforms.
only oddbblockreference has.
sincerely yours,
george udov
|