RhinoCommon API
RhinoGetGetRectangle Method (GetBoxMode, Point3d, IEnumerableString, Point3d) |
Gets a 3d rectangle made up of four points.
Namespace: Rhino.Input
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Result GetRectangle( GetBoxMode mode, Point3d firstPoint, IEnumerable<string> prompts, out Point3d[] corners )
Public Shared Function GetRectangle ( mode As GetBoxMode, firstPoint As Point3d, prompts As IEnumerable(Of String), <OutAttribute> ByRef corners As Point3d() ) As Result
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: ResultCommands.Result.Success if successful.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14