To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 11595
11594  |  11596
Subject: 
Re: Quick way to mirror-image a model?
Newsgroups: 
lugnet.cad
Date: 
Fri, 18 Jun 2004 16:00:47 GMT
Viewed: 
2956 times
  
In lugnet.cad, Dave Schuler wrote:
You're right--it would rotate the brick 180 degrees, but I think that's
necessary sometimes (like for the 2x2 slope bricks mirrored left-to-right).  But
you're also right that this isn't desireable in the case of bricks mirrored
front-to-back.  That's where my clunky explanation really breaks down.

You'd probably want to avoid a "flip," because that would cause the stud-logos
to be reversed.  I think basically you'll need to rotate some bricks 180 degrees
for the second tower, and you'll simply move other bricks (along the axes from
the first tower's location to the second, without rotating the brick along the
way).

Now that I've done that, I agree with you.  The true proper thing to do is to
adjust the rotation matrix of all parts by

            -a  d -g
(x, y, z) * -b  e -h = (-ax-by-cz, dx+ey+fz, -gx-hy-iz)
            -c  f -i

and create a list of exceptions that would be a rotation matrix plus a
translation, for example a 2 x 2 corner reflected on a horizontal axis should be
rotated by:

0  0 -1
0  1  0
-1  0  0

giving (x' = -z, y' = y, z' = -x)

and then translated in X and Z axes to put it in the right place.

Basically that would mean that any part having a rotation point not at its
geometric center would need a custom rotation and translation.

Sadly, I can't help you with the formal matrix rotation or linear algebra--my
understanding of all of this comes from picking at LDraw parts until I get what
I'm looking for...

Don't worry--I actually have a math degree and did most of my work in linear
algebra & analytical geometry and, um, it took far longer to understand this
than I care to admit...

The more I look at this, the more I see what Dan was saying--this is a
cumbersome method!

Ah, it's not too bad, especially when I did my program to automate it.  It has
shortcomings, but it works for the majority and the rest is merely exception
processing.

Carl



Message has 1 Reply:
  Re: Quick way to mirror-image a model?
 
(...) Take a peek at the MLCAD.INI file for minifig posing. Could you use a config file like this to handle the exceptions? I'd imagine if you pick one axis for mirroring that works best with most parts, (I think Travis said most were symmetric (...) (20 years ago, 18-Jun-04, to lugnet.cad)

Message is in Reply To:
  Re: Quick way to mirror-image a model?
 
(...) When you ask a stupid question, I'll let you know! 8^) You're right--it would rotate the brick 180 degrees, but I think that's necessary sometimes (like for the 2x2 slope bricks mirrored left-to-right). But you're also right that this isn't (...) (20 years ago, 18-Jun-04, to lugnet.cad)

65 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