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 / 11604
11603  |  11605
Subject: 
Re: Quick way to mirror-image a model?
Newsgroups: 
lugnet.cad
Date: 
Fri, 18 Jun 2004 23:31:55 GMT
Viewed: 
3579 times
  
In lugnet.cad, Steve Bliss wrote:
In lugnet.cad, Don Heyse wrote:
Here's what I'm talking about.  Completely ripped off from the
MLcad.ini file.

  http://ldglite.sf.net/mirror.ini

That one contains an entry every part in my parts.lst file.  It
needs to have the changes made for the exceptions, but here's
how it starts. [...]
2546.DAT            2546.DAT            0  1 0 0 0 1 0 0 0 1  0 0 0
2546P01.DAT         2546P01.DAT         0  1 0 0 0 1 0 0 0 1  0 0 0
6029A.DAT           6029A.DAT           0  1 0 0 0 1 0 0 0 1  0 0 0

I think I've got a more general solution, but first a quick thought:
You could make mirror.ini more human-readable if the 'normal' parts
were just flagged.  Something like:

2546.DAT      default
41770.DAT     exception  41769.DAT     0  1 0 0 0 1 0 0 0 1  0 0 0

Actually I was thinking of deleting them from the file to make it
smaller.  The only problem is remembering which ones were deleted and
which ones are new at update time.  I'm not sure how to automate
additions either way.  Probably have to use the sorted properties of
parts.lst

So, to make a long story short - I don't think MIRROR.INI should
specify how to transform part A into part B without a mirror operation.
It should specify the opposite: how to mirror part B into part A with
a mirroring operation, so mirroring-programs can take the
transformation being used on part A in the model file and wrap it
around the mirrored part B.

The main practical effect on MIRROR.INI would be that normal parts
would have a mirroring transform (1 0 0 0 1 0 0 0 -1) instead of the
standard transform.

I think that makes sense.  Apply the mirror transform and/or substitution
from MIRROR.INI individually to all parts in the subfile, then apply a
global mirror (across whatever axis you want) to the whole subfile.

It sounds so simple.  Could it be?

Don



Message has 1 Reply:
  Re: Quick way to mirror-image a model?
 
(...) Keep a full.mirror.ini, with all the default entries. A simple grep drop the extra lines, giving us mirror.ini. (...) Well, it depends entirely on whether or not applying two mirroring transformations always gives an un-mirrored result. If (...) (20 years ago, 21-Jun-04, to lugnet.cad)

Message is in Reply To:
  Re: Quick way to mirror-image a model?  [DAT]
 
(...) [...] (...) I think I've got a more general solution, but first a quick thought: You could make mirror.ini more human-readable if the 'normal' parts were just flagged. Something like: 2546.DAT default 41770.DAT exception 41769.DAT 0 1 0 0 0 1 (...) (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