1

Let assume that we have a half 3D mesh object and want to mirror it, in C# 2008 Express. That is, we want to have its simetrical part according to the center line of the object.

Could you help me to do that.

Thanks in advance.

2 Answers 2

1

You can try scaling it negatively in one axis, that should essentially flip it.

So if its scale is (1, 1, 1), change it to (-1, 1, 1).

1

hmmmm... here is the algorithm I would use:

  1. Find the point on the mesh that you would want to reflect about. Call it p0.
  2. Translate the object so that p0 lies on the origin (0,0,0).
  3. Now rotate the object 180 degrees about the origin along your desired plane of rotation.
  4. Translate back to p0.

This should give you a reflection of the object about the line you wish to rotate around.

2
  • 1
    You can't get a mirror just by rotating, the two objects are physically different..
    – cloudhead
    Commented Jun 10, 2009 at 17:51
  • hmmm... but how would you do that with to an arbitrary plane? Commented Jun 10, 2009 at 18:10