## Mirror imaging

The Purple Panzer
Field Marshal
Posts: 244
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

### Mirror imaging

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.

JeffM
Staff Sergeant
Posts: 5187
Joined: Fri Dec 13, 2002 4:11 am
Location: https://github.com/OmniTanks
Contact:

### Re: Mirror imaging

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.
JeffM

The Purple Panzer
Field Marshal
Posts: 244
Joined: Tue Sep 23, 2003 8:13 pm
Location: Stonington, CT
Contact:

### Re: Mirror imaging

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.