Click or drag to resize
Rectangle3dCreateFromPolyline Method (IEnumerablePoint3d)
Attempts to create a rectangle from a polyline. In order for the polyline to qualify as a rectangle, it must have 4 or 5 corner points (i.e. it need not be closed).

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.50000.0 (5.0.20693.0)
Syntax
public static Rectangle3d CreateFromPolyline(
	IEnumerable<Point3d> polyline
)

Parameters

polyline
Type: System.Collections.GenericIEnumerablePoint3d
Polyline to parse.

Return Value

Type: Rectangle3d
A rectangle that is shaped similarly to the polyline or Rectangle3d.Unset if the polyline does not represent a rectangle.
See Also