[Closed] mirror faces/polygons local !?
so i’m trying to add new mirror features to rappatools…
but can’t figure out how to mirror faces locally…
one idea that i have is to rotate the polygons let’s say on Z axis… but that’s sort of flipped on X axis… so i still have to flip it… those kind of things are available in max 2011 but i want to make it for older versions of max… 9+
any idea ?
to mirror on x (world related) it can be done easily
m1 = [-1, -1, 1]
flip1 = [1, -1, 1]
for x = 1 to verts.count do
(
OBJ1.verts[vert[x]].pos = flip1 * OBJ1.verts[vert[x]].pos * m1
)
edit:
another idea that came to me while i was testing the mirror is to detach the polygons then mirror them… but i think that this will be a lot slower… if there’s no other option i’ll do this…
you can multiply the obj.scale by [-1,1,1] to mirror on x in local space…
but that will work only on the entire object… which i did differently… but now i want to do it for polygons/elements…
another possibility would be – in case you do want to flip it on local x
for i = 1 to getnumverts $ do(
local IPos = getvert $ i
IPos[1] = $.position.x - (IPos[1] - $.position.x)
setvert $ i IPos
)
update $
you do have to flip the affected faces
regards,
stefan
awesome… got it to work on editable poly… with the selected polys… thanks toxis