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 / 7870
7869  |  7871
Subject: 
Re: Rotation of Systems
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 20 Sep 2002 13:44:35 GMT
Viewed: 
477 times
  
In lugnet.cad.dev, Orion Pobursky writes:
In lugnet.cad.dev, Ross Crawford writes:
In lugnet.cad.dev, Orion Pobursky writes:
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 point me in the right direction?

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.

Actually, I am wanting to know how to do this programmatically (i.e. with
rotation matricies)

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 it's
right, but I'm not positive.

Don



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

10 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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