Brep.CreateFromBox Method (IEnumerable(Point3d))

BrepCreateFromBox Method (IEnumerablePoint3d)

Constructs new brep from 8 corner points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static Brep CreateFromBox(
	IEnumerable<Point3d> corners
)
Public Shared Function CreateFromBox ( 
	corners As IEnumerable(Of Point3d)
) As Brep

Parameters

corners
Type: System.Collections.GenericIEnumerablePoint3d
8 points defining the box corners arranged as the vN labels indicate.

v7_______e6____v6

|\ |\

| e7 | e5

| \ ______e4_____\

e11 v4 | v5

| | e10 |

| | | |

v3--|---e2----v2 e9

\ e8 \ |

e3 | e1|

\| \|

v0_____e0______v1

Return Value

Type: Brep
A new brep, or null on error.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also