Click or drag to resize

MeshCreateFromBox Method (IEnumerablePoint3d, Int32, Int32, Int32)

Constructs new mesh from 8 corner points.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.3
Syntax
public static Mesh CreateFromBox(
	IEnumerable<Point3d> corners,
	int xCount,
	int yCount,
	int zCount
)

Parameters

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

v7_____________v6

|\ |\

| \ | \

| \ _____________\

| v4 | v5

| | | |

| | | |

v3--|----------v2 |

\ | \ |

\ | \ |

\| \|

v0_____________v1

xCount
Type: SystemInt32
Number of faces in x-direction.
yCount
Type: SystemInt32
Number of faces in y-direction.
zCount
Type: SystemInt32
Number of faces in z-direction.

Return Value

Type: Mesh
A new brep, or null on failure.

Return Value

Type: Mesh
A new box mesh, on null on error.
See Also