MirrorObject

Mirrors a single object.

Syntax

rhinoscriptsyntax.MirrorObject (object_id, start_point, end_point, copy=False)

rhinoscript.object.MirrorObject (object_id, start_point, end_point, copy=False)

Parameters

object_id

Required. String or Guid. The identifier of the object to mirror.

start_point

Required. List of 3 numbers or Point3d. The start of the mirror plane.

end_point

Required. List of 3 numbers or Point3d. The end of the mirror plane.

copy

Optional. Boolean. Copy the object. If omitted, the object will not be copied (False).

Returns

Guid

The identifier of the mirrored object if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object to mirror")

if obj:

    start = rs.GetPoint("Start of mirror plane")

    end = rs.GetPoint("End of mirror plane")

    if start and end:

        rs.MirrorObject( obj, start, end, True )

Also See

MirrorObjects