Click or drag to resize

Rectangle3dCreateFromPolyline Method (IEnumerablePoint3d)

Attempts to create a rectangle from a polyline. This method only works well for polylines that already closely resemble rectangles. If the polyline contains more than four vertices, the least significant ones will be ignored. If the polylines is non-orthogonal, the discrepancies will be averaged away. This method should not be used as a Rectangle fitter.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
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.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.5
See Also