To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7867
    Rotation of Systems —Orion Pobursky
   I've been puzzling with this for days and I give up. Here's my problem: I can rotate a single part about it's origin but I'm having trouble figuring out how to rotate a system of parts about the origin of a given part in the system. Can someone (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev)
   
        Re: Rotation of Systems —Ross Crawford
   (...) Put the system of parts in a sub-model, with the origin at the point of rotation, then include the sub-model and rotate that. HTH ROSCO (22 years ago, 20-Sep-02, to lugnet.cad.dev)
   
        Re: Rotation of Systems —Orion Pobursky
   (...) Actually, I am wanting to know how to do this programmatically (i.e. with rotation matricies) -Orion (22 years ago, 20-Sep-02, to lugnet.cad.dev)
   
        Re: Rotation of Systems —Don Heyse
     (...) How about this? s.origin = singlepart.origin For (each part) diff.origin = part.origin - s.origin part.origin += diff.origin rotate part about part.origin part.origin -= diff.origin Scribble the movement on paper and see if it works. I think (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev)
    
         Re: Rotation of Systems —Kevin Clague
     To make rotation work like you want, you have to move the group to the origin of the MLCAD space, rotate the group, then relocate the group to where it started. Kevin (...) figuring (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev)
    
         Re: Rotation of Systems —Orion Pobursky
     Here's a clarification of my question: I'm creating a minifig generator plugin for LDDesignPad (possibly a stand alone version as well). I'm having trouble rotating the arm,hand,tool assembly about the origin of the arm. Using an inline procedure (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev)
    
         Re: Rotation of Systems —Don Heyse
     (...) Lets try it with vectors. Calculate the vector V from the arm origin to the hand origin. Rotate this vector about the arm origin (by angle A) to generate vector W. Subtract V from W to generate displacement vector X. Add the displacement (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev)
    
         Re: Rotation of Systems —Steve Bliss
     (...) Actually, if I remember right, the Minifig Modeler in LDAO uses LDLite statements for placement and rotation. Of course, it's been awhile since I was in that code, so I could be hallucinating... 0 TRANSLATE <to end of arm> 0 ROTATE <wrist into (...) (22 years ago, 26-Sep-02, to lugnet.cad.dev)
    
         Re: Rotation of Systems —Orion Pobursky
     (...) Yup, you remember correctly. Actually, I solved my problem after looking at your code. -Orion (22 years ago, 26-Sep-02, to lugnet.cad.dev)
   
        Re: Rotation of Systems —Ryan Farrington
   [X-posted to .mlcad] (...) While I can't help because of what Orion revealed here (I'm no programmer!), perhaps Michael Lachmann can help. I have discovered that a simple way to (as a user) rotate around one object's origin is to select the origin (...) (22 years ago, 20-Sep-02, to lugnet.cad.dev, lugnet.cad.mlcad)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR