几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】ranslate Rotate Insert Problem (http://www.dimcax.com/hust/showthread.php?t=18808)

yang686526 2009-05-07 05:14 PM

【转帖】ranslate Rotate Insert Problem
 
translate rotate insert problem
translate rotate insert problem
hi,
i'm trying to translate a block and then rotate it.
pblkref->setposition(odgepoint3d( movex, movey, 0));
pblkref->setrotation( rotationangle );
this works well but.....this code rotates around the insertion point and afterwards translates it with the movex,movey coordinates.
i want to first translate my block(movex, movey) and afterwards rotate it. changing the order of the setposition/setrotation does not work.
is there a way to do this ?
you can use setblocktransform(const odgematrix3d&)
sergey slezkin


所有的时间均为北京时间。 现在的时间是 10:24 PM.