Hi Naresh,

you can use the ExecuteOperation method of Geometry3D
(http://docs.mitk.org/nightly-qt4/classmitk_1_1Geometry3D.html#0fcfa2dca52aaa865ef950bf52affc26)
 (which you can easily get from your surface)

For rotation e.g. the following code should work:

RotationOperation* op = new RotationOperation(OpROTATE, newCenter,
rotationAxis, rotationAngle);
geometry->ExecuteOperation(op);
delete op;

For translation you can use a PointOperation with operation type OpMOVE. For 
scaling you use OpSCALE.

Alex

On Thu, 2010-08-19 at 09:37 +0200, naresh wrote:
> Hi
> 
> I am loading 3D STL surface in mitk. I want to do some operation like 
> rotation,scale,translation on DataNode or may be on Surface but i didn't 
> find proper way to do that.
> 
> Any one suggest me how to do that ?
> 
> Naresh
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users



------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to