M_Rhino_Geometry_Rectangle3d_CreateFromPolyline - mcneel/rhinocommon-api-docs GitHub Wiki

Rectangle3d.CreateFromPolyline Method (IEnumerable(Point3d))

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: Rhino 6.0

Syntax

C#

public static Rectangle3d CreateFromPolyline(
	IEnumerable<Point3d> polyline
)

VB

Public Shared Function CreateFromPolyline ( 
	polyline As IEnumerable(Of Point3d)
) As Rectangle3d

Parameters

 

polyline
Type: System.Collections.Generic.IEnumerable(Point3d)
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

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rectangle3d Structure
CreateFromPolyline Overload
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️