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 / 7869
  Re: Rotation of Systems
 
(...) 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
 
(...) 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
 
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
 
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
 
[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)
 
  Re: Rotation of Systems
 
(...) 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
 
(...) 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
 
(...) 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)

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