Mirror imaging

Questions and answers about the how and why of making maps.
Post Reply
User avatar
The Purple Panzer
Field Marshal
Field Marshal
Posts: 246
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

Mirror imaging

Post by The Purple Panzer »

If I have an object that's defined, e.g.

define BuildingWing
meshbox...
...
enddef

Is there any straightforward way of producing it's mirror image? I don't think it's doable just with spins, though I may just be rusty with my mathematics of symmetries. I may test out using a negative scale, which might do a reflection through the origin.
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Re: Mirror imaging

Post by JeffM »

No, a mirror requires two things, a negative scale in an axis, and then the reversal of the mesh order. We have the first as a map transform, but not the second. You will need to use a modeler to mirror the mesh.
ImageJeffM
User avatar
The Purple Panzer
Field Marshal
Field Marshal
Posts: 246
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

Re: Mirror imaging

Post by The Purple Panzer »

The only quibble I have with your comment is that I'm not talking about custom meshes, just "meshbox"s and meshpyramids, and other basic V2 map primitives. For my purposes the internals of those things don't need to be mirrored, just their overall positions (reflecting a meshbox with a texture is, as far as I can see, the same meshbox with the same texture, with x => -x, y => -y, or both). The objects themselves don't need to change internally.

Maybe you misunderstood my question as more general, that it involved more general meshes, and I can see that as more complicated. Maybe I don't understand your phrase "we have the first as a map transform" - I tried it, scaling negatively in x, y, and both, and nothing seemed quite right, so I don't mean to argue your larger point.

No need to respond - I was hoping there was an easy answer for simple objects, and empirically I don't think there is. If I need it I'll just keep track of the objects I'm generating and apply the symmetry operation(s) I need.
Post Reply