| | Re: Quick way to mirror-image a model?
|
|
What about a flag for default behavior? I've been coding to ignore ones with default rotations, but there are plenty of parts (especially slopes) that need a (-1 0 0 0 1 0 0 0 1) rotation applied when reflected front-to-back and it would be nice to (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Never mind. 5 would be the correct value for this, right? (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Why? I have a slow PC, and running the mirwiz.exe program is nearly instantaneous. It's a lookup and 2 matrix multiplies per part. If the exception matrix lookup fails, use the default matrix. It would take extra, unneeded code to ignore (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) I don't think so. 5 is for keeping track of which parts we've looked at, not which ones to ignore when your run your mirror program. Eventually I think we'll remove all the ones marked with a 5 from the MIRROR.INI file. (And that includes the (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Why process something as an exception when the default behavior is needed? It's all in what one sees as extra, unneeded code. ;-) Though I just did some timing and I don't see any performance differences between ignoring them and not. (...) (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) IMO there *is* value to knowing that the proper exception matrix is indeed an exception rather than coincidentally the same as the default matrix. If the 5 is not the place for this, there should be a new flag for it. It's especially important (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Sure, but you still haven't convinced me there's any difference between a 2x2 brick and a 2x2 slope brick. I must be getting senile in my old age, because I just don't get it. Anyhow, use 55 if it makes you happy. We'll figure out what to do (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Well, yeah. But it's simpler to process it all -- the only exceptional processing you need is "look for the part in mirror.ini. If not found, use the default settings". With your method, you have to also add "if the matrix looks like MD, then (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
Oops, I missed replying to one point. (...) If you mean (-1 0 0 0 1 0 0 0 1) as the 'default' matrix, my response is: that default matrix works for *any* reflection across any arbitrary plane. If you mean (-1 0 0 0 1 0 0 0 1) as the reflection (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Uh, I thought we were refering to it as "Steve's algorithm". Are you having 2nd thoughts? ;^) Enjoy, Don PS. Why am I constantly seeing really long lines in the browser for this thread. It makes things really hard to read when I have to scroll (...) (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Sorry, I should have said "Don's pseudo-code". ;) (...) I don't know - I'm replying via the web interface, posting with plain text. (20 years ago, 24-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) Alright, I give up then. I've accomplished my original goal of mirroring a model, and I'm just confusing and frustrating myself and wasting your and Don's time with stupid questions. I've put the newest executable & source code at: (URL) (20 years ago, 25-Jun-04, to lugnet.cad)
|
|
| | Re: Quick way to mirror-image a model?
|
|
(...) I've put the complete mirror.ini file here for now. (URL) (20 years ago, 2-Jul-04, to lugnet.cad)
|