几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】ransformation Matri (http://www.dimcax.com/hust/showthread.php?t=18802)

yang686526 2009-05-07 05:11 PM

【转帖】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


所有的时间均为北京时间。 现在的时间是 07:56 AM.