To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.dev.org.ldrawOpen lugnet.cad.dev.org.ldraw in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / Organizations / LDraw / 413
412  |  414
Subject: 
Mirroring in LDraw (was: Re: what are the rules about hoses etc?)
Newsgroups: 
lugnet.cad.dev.org.ldraw
Date: 
Wed, 28 Jul 1999 13:17:25 GMT
Viewed: 
944 times
  
On Mon, 26 Jul 1999 13:56:33 GMT, Bram Lambrecht <braml@juno.com> wrote:

Let's say the part looks like this:
|
|   1 15 0 0 0 1 0 0 0 1 0 0 0 1 hose.dat
|
to mirror left to right (or right to left), change the line to:
|
|   1 15 0 0 0 -1 0 0 0 1 0 0 0 1 hose.dat
|
It's more complicated if the part is already turned, so it's always a
good idea to mirror first and then turn.

It's not that much more complicated, as long as you want to mirror across
the *model's* orientation, not the *part's* orientation.

If you've got a part command:

1 15 x y z a b c d e f g h i part.dat

And you want to mirror on X (switch right and left), change x, a, b and c
to negative:

1 15 -x y z -a -b -c d e f g h i part.dat

For Y (vertically), negate y, d, e, and f:

1 15 x -y z a b c -d -e -f g h i part.dat

For Z (front-to-back), negate z, g, h, and i:

1 15 x y -z a b c d e f -g -h -i part.dat

Steve



Message is in Reply To:
  Re: what are the rules about hoses etc?
 
(...) I didn't mean the address, I meant the "Scott R Dennett" bit. I see I was wrong. Do both you and your dad use the same email address? Doesn't that get annoying? (...) read (...) It's not in the tutorial. Let's say the part looks like this: | | (...) (25 years ago, 26-Jul-99, to lugnet.cad.dev.org.ldraw)

2 Messages in This Thread:

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

Custom Search

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