Keeping one object stationary and inserting that into rotatable object .
    4 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    yogesh jain
 am 14 Jan. 2016
  
    
    
    
    
    Beantwortet: Walter Roberson
      
      
 am 14 Jan. 2016
            Hello all, I am having some problem about insertion of one 3D object into other 3D object. For that one object must be stable and another one must be rotatable . User should insert that according to his view. Like we keep drill machine stationary and rotate the object then we insert the drill machine into that . How to implement that into MATLAB ? thanks.
0 Kommentare
Akzeptierte Antwort
  Walter Roberson
      
      
 am 14 Jan. 2016
        Create an hgtransform and parent the display of the rotating object to the hgtransform. Leave the non-rotating object parented to the axes directly, or else create a different hgtransform to parent it to (might be useful for proper positioning.)
To rotate, set the Matrix property of the hgtransform to the proper transformation matrix.
The proper transformation matrix will probably be a combination of three matrices: one to translate the object so that its center of rotation is at (0,0,0); the second to rotate a centered object; and the third to translate the center of the rotated object back to the original location.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Object Containers finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

