M_Rhino_Geometry_Rectangle3d_CreateFromPolyline - mcneel/rhinocommon-api-docs GitHub Wiki
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
C#
public static Rectangle3d CreateFromPolyline(
IEnumerable<Point3d> polyline
)
VB
Public Shared Function CreateFromPolyline (
polyline As IEnumerable(Of Point3d)
) As Rectangle3d
- polyline
- Type: System.Collections.Generic.IEnumerable(Point3d)
Polyline to parse.
Type: Rectangle3d
A rectangle that is shaped similarly to the polyline or Rectangle3d.Unset if the polyline does not represent a rectangle.
Supported in: 6.0.16224.21491, 5D58w
Rectangle3d Structure
CreateFromPolyline Overload
Rhino.Geometry Namespace