Table of Contents

Method CmdMirror

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

CmdMirror(object, object, double, CmdScriptCallback, bool)

Mirror an array of vdraw entities around a 2d axis. Check the function finished throw the passed scriptCallBack delegate

public void CmdMirror(object entities, object axisPoint, double axisAngle, CmdScriptCallback scriptCallBack = null, bool keepsource = false)

Parameters

entities object

An array of vdraw entities or null so the user can pick the objects on screen.

axisPoint object

A point object in World coordinates or null so the user can pick this point on screen. This point will be used as the mirro axis base point.

axisAngle double

The angle (in radians) defines the direction of the mirror axis or null in order for the user to select it on screen.

scriptCallBack CmdScriptCallback

Optional.Can be null.A delegate of CmdScriptCallback type to be fired when the user action finish

keepsource bool

Optional.If it is true the command keep the source objects and mirror a copy of them

Examples

vdrawObj.CmdMirror(null, null, null); Start a new mirror user action .
vdrawObj.CmdMirror(null,  [0,0,0],0); Mirror around X Axis .
vdrawObj.CmdMirror(null, [0,0,0],vdgeo.HALF_PI);Mirror around Y Axis .

Remarks

This command does not write to UndoHistory() and Script buffer. In order to do that use the scriptCommand.mirror(object, double, ScriptSelectDelegate, bool)