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 / 16381
16380  |  16382
Subject: 
Re: Mirror matrix question
Newsgroups: 
lugnet.cad
Date: 
Thu, 13 Aug 2009 10:03:08 GMT
Viewed: 
9774 times
  
In lugnet.cad, Kevin L. Clague wrote:
Hi gang,

  If I have an LDraw Type 1 line that adds a submodel, and the rotation matrix
of the line is a mirrored matrix about one and only one axis, can one calculate
which axis the model is mirrored about?  Can one do so if the user mirrored
*and* rotated the submodel when adding it to the model?

  What I want to do is to be able to render the mirror image version of the
model as the mirror image (so the user builds the submodel correctly), but with
the same overall orientation as the non-mirrored version.

  Any help would be great.

Thanks,
Kevin

Hi Kevin,

I just realised that there might be a way to do this by exploiting the way LDRAW
defines parts. All mirrored parts should be written as a bunch of studs and a
subpart which is either mirrored or non-mirrored. By determining which part is
the mirrored version you can use the applied rotation matrix and the internal
mirroring matrix to work out the correct orientation.

So let us assume the unmirrored part is defined by
studs + R x subpart
and the mirrored part is defined by
studs + Rp x subpart (where Rm has a negative determinate)
while the mirrored submodel including the part is acted upon by a mirror matrix
M

If we mirror the unmirrored part then the submodel is rotated to M R and thus we
must set Mp = M R inv(Rp) when we replace it by the mirrored part

If we mirror the mirrored part then the submodel is rotated to M Rp and thus we
must set Mp = M Rp inv(R) when we replace it by the unmirrored part

Does this all make sense?

Tim



Message is in Reply To:
  Mirror matrix question
 
Hi gang, If I have an LDraw Type 1 line that adds a submodel, and the rotation matrix of the line is a mirrored matrix about one and only one axis, can one calculate which axis the model is mirrored about? Can one do so if the user mirrored *and* (...) (15 years ago, 14-Jun-09, to lugnet.cad)

9 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