Subject:
|
Re: Rotation of Systems
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Fri, 20 Sep 2002 17:02:36 GMT
|
Viewed:
|
539 times
|
| |
| |
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
In lugnet.cad.dev, Don Heyse writes:
> 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
|
| 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)
|
Message is in Reply To:
| | 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)
|
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
|
|
|
|