Click or drag to resize

RhinoGetGetRectangle Method (GetBoxMode, Point3d, IEnumerableString, Point3d)

Gets a 3d rectangle made up of four points.

Namespace:  Rhino.Input
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.0
Syntax
public static Result GetRectangle(
	GetBoxMode mode,
	Point3d firstPoint,
	IEnumerable<string> prompts,
	out Point3d[] corners
)

Parameters

mode
Type: Rhino.InputGetBoxMode
A get box mode.
firstPoint
Type: Rhino.GeometryPoint3d
The first corner used. Pass Point3d.Unset if you do not want to set this.
prompts
Type: System.Collections.GenericIEnumerableString
Optional prompts to display while getting points. May be null.
corners
Type: Rhino.GeometryPoint3d
Corners of the rectangle in counter-clockwise order will be assigned to this out parameter during this call.

Return Value

Type: Result
Commands.Result.Success if successful.
See Also